]> granicus.if.org Git - shadow/commitdiff
* lib/defines.h: Added splint definitions to replace <locale.h>
authornekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Wed, 22 Apr 2009 21:22:32 +0000 (21:22 +0000)
committernekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Wed, 22 Apr 2009 21:22:32 +0000 (21:22 +0000)
ChangeLog
lib/defines.h

index ab5651838337f4f63fe21423513a9fc2a9672d37..3f8be8fa91b1277e653a40bfffe31bae8ca0cfb5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2009-04-22  Nicolas François  <nicolas.francois@centraliens.net>
+
+       * lib/defines.h: Added splint definitions to replace <locale.h>
+
 2009-04-22  Nicolas François  <nicolas.francois@centraliens.net>
 
        * libmisc/utmp.c, libmisc/age.c, libmisc/shell.c, lib/groupio.c,
index 9fb706b6b40fce02052b1f03f835f4aa56c36da7..3d44bb6ecb0c1354326899fbef10e4da8b52a89a 100644 (file)
@@ -23,7 +23,15 @@ typedef unsigned char _Bool;
 #define ISDIGIT_LOCALE(c) (IN_CTYPE_DOMAIN (c) && isdigit (c))
 
 /* Take care of NLS matters.  */
-
+#ifdef S_SPLINT_S
+extern char *setlocale(int categorie, const char *locale);
+# define LC_ALL                (6)
+extern char * bindtextdomain (const char * domainname, const char * dirname);
+extern char * textdomain (const char * domainname);
+# define _(Text) Text
+# define ngettext(Msgid1, Msgid2, N) \
+    ((N) == 1 ? (const char *) (Msgid1) : (const char *) (Msgid2))
+#else
 #ifdef HAVE_LOCALE_H
 # include <locale.h>
 #else
@@ -49,6 +57,7 @@ typedef unsigned char _Bool;
 # define ngettext(Msgid1, Msgid2, N) \
     ((N) == 1 ? (const char *) (Msgid1) : (const char *) (Msgid2))
 #endif
+#endif
 
 #if STDC_HEADERS
 # include <stdlib.h>