From: Ulrich Drepper Date: Sat, 22 Jan 2000 07:40:14 +0000 (+0000) Subject: Update. X-Git-Tag: upstream/2.20~19326 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=964328be731fc2b0fd9d5f4cc983bc76163d8585;p=platform%2Fupstream%2Flinaro-glibc.git Update. * intl/libintl.h: Add format_arg attributes to declarations of new functions. --- diff --git a/ChangeLog b/ChangeLog index 861f5ba..060633e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2000-01-21 Ulrich Drepper + * intl/libintl.h: Add format_arg attributes to declarations of new + functions. + * intl/Makefile (routines): Add dcigettext, dcngettext, dngettxt, ngettext, and plural. (distribute): Add plural.y, po2test.sed, and tst-gettext.sh. diff --git a/intl/libintl.h b/intl/libintl.h index 5ac716b..a301dc5 100644 --- a/intl/libintl.h +++ b/intl/libintl.h @@ -54,18 +54,21 @@ extern char *__dcgettext (__const char *__domainname, /* Similar to `gettext' but select the plural form corresponding to the number N. */ extern char *ngettext (__const char *__msgid1, __const char *__msgid2, - unsigned long int __n) __THROW; + unsigned long int __n) + __THROW __attribute__ ((__format_arg__ (1))); /* Similar to `dgettext' but select the plural form corresponding to the number N. */ extern char *dngettext (__const char *__domainname, __const char *__msgid1, - __const char *__msgid2, unsigned long int __n) __THROW; + __const char *__msgid2, unsigned long int __n) + __THROW __attribute__ ((__format_arg__ (2))); /* Similar to `dxgettext' but select the plural form corresponding to the number N. */ extern char *dcngettext (__const char *__domainname, __const char *__msgid1, __const char *__msgid2, unsigned long int __n, - int __category) __THROW; + int __category) + __THROW __attribute__ ((__format_arg__ (2))); /* Set the current default message catalog to DOMAINNAME.