From: nekral-guest Date: Wed, 22 Apr 2009 21:22:32 +0000 (+0000) Subject: * lib/defines.h: Added splint definitions to replace X-Git-Tag: 4.1.4~121 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fe29344b3393cee08780782ca490e6e4b391d214;p=shadow * lib/defines.h: Added splint definitions to replace --- diff --git a/ChangeLog b/ChangeLog index ab565183..3f8be8fa 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2009-04-22 Nicolas François + + * lib/defines.h: Added splint definitions to replace + 2009-04-22 Nicolas François * libmisc/utmp.c, libmisc/age.c, libmisc/shell.c, lib/groupio.c, diff --git a/lib/defines.h b/lib/defines.h index 9fb706b6..3d44bb6e 100644 --- a/lib/defines.h +++ b/lib/defines.h @@ -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 #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