[Pkg-shadow-commits] r2761 - in upstream/trunk: . lib
Nicolas FRANÇOIS
nekral-guest at alioth.debian.org
Wed Apr 22 21:22:32 UTC 2009
Author: nekral-guest
Date: 2009-04-22 21:22:32 +0000 (Wed, 22 Apr 2009)
New Revision: 2761
Modified:
upstream/trunk/ChangeLog
upstream/trunk/lib/defines.h
Log:
* lib/defines.h: Added splint definitions to replace <locale.h>
Modified: upstream/trunk/ChangeLog
===================================================================
--- upstream/trunk/ChangeLog 2009-04-22 21:21:14 UTC (rev 2760)
+++ upstream/trunk/ChangeLog 2009-04-22 21:22:32 UTC (rev 2761)
@@ -1,5 +1,9 @@
2009-04-22 Nicolas François <nicolas.francois at centraliens.net>
+ * lib/defines.h: Added splint definitions to replace <locale.h>
+
+2009-04-22 Nicolas François <nicolas.francois at centraliens.net>
+
* libmisc/utmp.c, libmisc/age.c, libmisc/shell.c, lib/groupio.c,
lib/groupio.h, lib/sgroupio.c, lib/sgroupio.h, lib/shadowio.c,
lib/pwio.c, lib/commonio.c, lib/shadowio.h, lib/pwio.h,
Modified: upstream/trunk/lib/defines.h
===================================================================
--- upstream/trunk/lib/defines.h 2009-04-22 21:21:14 UTC (rev 2760)
+++ upstream/trunk/lib/defines.h 2009-04-22 21:22:32 UTC (rev 2761)
@@ -23,7 +23,15 @@
#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 @@
# define ngettext(Msgid1, Msgid2, N) \
((N) == 1 ? (const char *) (Msgid1) : (const char *) (Msgid2))
#endif
+#endif
#if STDC_HEADERS
# include <stdlib.h>
More information about the Pkg-shadow-commits
mailing list