aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2005-05-07 20:36:13 +0000
committerUlrich Drepper <drepper@redhat.com>2005-05-07 20:36:13 +0000
commit83c0f41ff0a3964e86fd0083a7aba4d587b5451b (patch)
tree50d8230b66b7159375e59fc64a4c14cad2b2a508
parent7b9189934509bd343dc77ef49d40620f327b6708 (diff)
downloadglibc-83c0f41ff0a3964e86fd0083a7aba4d587b5451b.zip
glibc-83c0f41ff0a3964e86fd0083a7aba4d587b5451b.tar.gz
glibc-83c0f41ff0a3964e86fd0083a7aba4d587b5451b.tar.bz2
* intl/libintl.h: Always use __attribute_format_arg__ for gettext
functions since gcc sometimes forgets the attribute for the standard functions.
-rw-r--r--ChangeLog6
-rw-r--r--intl/libintl.h10
2 files changed, 12 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 2416243..beafec6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2005-05-07 Ulrich Drepper <drepper@redhat.com>
+
+ * intl/libintl.h: Always use __attribute_format_arg__ for gettext
+ functions since gcc sometimes forgets the attribute for the
+ standard functions.
+
2005-05-06 Jakub Jelinek <jakub@redhat.com>
[BZ #934]
diff --git a/intl/libintl.h b/intl/libintl.h
index 6561c78..544dec3 100644
--- a/intl/libintl.h
+++ b/intl/libintl.h
@@ -1,5 +1,5 @@
/* Message catalogs for internationalization.
- Copyright (C) 1995-1999, 2000-2002, 2004 Free Software Foundation, Inc.
+ Copyright (C) 1995-2002, 2004, 2005 Free Software Foundation, Inc.
This file is part of the GNU C Library.
This file is derived from the file libgettext.h in the GNU gettext package.
@@ -37,19 +37,21 @@ __BEGIN_DECLS
/* Look up MSGID in the current default message catalog for the current
LC_MESSAGES locale. If not found, returns MSGID itself (the default
text). */
-extern char *gettext (__const char *__msgid) __THROW;
+extern char *gettext (__const char *__msgid)
+ __THROW __attribute_format_arg__ (1);
/* Look up MSGID in the DOMAINNAME message catalog for the current
LC_MESSAGES locale. */
extern char *dgettext (__const char *__domainname, __const char *__msgid)
- __THROW;
+ __THROW __attribute_format_arg__ (2);
extern char *__dgettext (__const char *__domainname, __const char *__msgid)
__THROW __attribute_format_arg__ (2);
/* Look up MSGID in the DOMAINNAME message catalog for the current CATEGORY
locale. */
extern char *dcgettext (__const char *__domainname,
- __const char *__msgid, int __category) __THROW;
+ __const char *__msgid, int __category)
+ __THROW __attribute_format_arg__ (2);
extern char *__dcgettext (__const char *__domainname,
__const char *__msgid, int __category)
__THROW __attribute_format_arg__ (2);