Notify xgettext about functions that have a format string argument.
authorBruno Haible <bruno@clisp.org>
Sun, 28 Oct 2007 20:39:15 +0000 (21:39 +0100)
committerBruno Haible <bruno@clisp.org>
Sun, 28 Oct 2007 20:39:15 +0000 (21:39 +0100)
ChangeLog
modules/error
modules/vasprintf
modules/verror
modules/xprintf
modules/xvasprintf

index 847b76a5674b756aafb48d27ff6256803943f5bf..b60f305f3077f9fcdb5b7fae373934bb61b4a783 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2007-10-28  Bruno Haible  <bruno@clisp.org>
+
+       * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
+       Invoke AM_GETTEXT_OPTION if it exists.
+       * modules/vasprintf: Likewise.
+       * modules/verror: Likewise.
+       * modules/xprintf: Likewise.
+       * modules/xvasprintf: Likewise.
+
 2007-10-27  Ben Pfaff  <blp@gnu.org>
 
        * lib/math.in.h: Define isfinite macro and prototypes for
index cdf57f07d5aca767e541df91bbff9f3ebbe94f95..1b58cdac718565d643647a69d6e9368e94bd67ba 100644 (file)
@@ -1,6 +1,11 @@
 Description:
 error() and error_at_line() functions: Error reporting.
 
+Notice:
+If you are using GNU gettext version 0.16.1 or older, add the following options
+to XGETTEXT_OPTIONS in your po/Makevars:
+  --flag=error:3:c-format --flag=error_at_line:5:c-format
+
 Files:
 lib/error.h
 lib/error.c
@@ -11,6 +16,9 @@ strerror
 
 configure.ac:
 gl_ERROR
+m4_ifdef([AM_XGETTEXT_OPTION],
+  [AM_XGETTEXT_OPTION([--flag=error:3:c-format])
+   AM_XGETTEXT_OPTION([--flag=error_at_line:5:c-format])])
 
 Makefile.am:
 
index 6ca71bd311f82af096ed0f281245bca3ca5ccb10..bdd642f4bab562adbac1b5160f3e6891809c00cf 100644 (file)
@@ -1,6 +1,11 @@
 Description:
 vsprintf with automatic memory allocation.
 
+Notice:
+If you are using GNU gettext version 0.16.1 or older, add the following options
+to XGETTEXT_OPTIONS in your po/Makevars:
+  --flag=asprintf:2:c-format --flag=vasprintf:2:c-format
+
 Files:
 lib/vasprintf.c
 lib/asprintf.c
@@ -14,6 +19,9 @@ stdio
 configure.ac:
 gl_FUNC_VASPRINTF
 gl_STDIO_MODULE_INDICATOR([vasprintf])
+m4_ifdef([AM_XGETTEXT_OPTION],
+  [AM_XGETTEXT_OPTION([--flag=asprintf:2:c-format])
+   AM_XGETTEXT_OPTION([--flag=vasprintf:2:c-format])])
 
 Makefile.am:
 
index 4b4b621e7fdba9c84ae89f307367b42027fa23d0..5c43dfe427a82072a627e2fcfd84e97de01d615c 100644 (file)
@@ -1,6 +1,11 @@
 Description:
 verror() and verror_at_line() functions: Error reporting with va_list.
 
+Notice:
+If you are using GNU gettext version 0.16.1 or older, add the following options
+to XGETTEXT_OPTIONS in your po/Makevars:
+  --flag=verror:3:c-format --flag=verror_at_line:5:c-format
+
 Files:
 lib/verror.h
 lib/verror.c
@@ -10,6 +15,9 @@ error
 xvasprintf
 
 configure.ac:
+m4_ifdef([AM_XGETTEXT_OPTION],
+  [AM_XGETTEXT_OPTION([--flag=verror:3:c-format])
+   AM_XGETTEXT_OPTION([--flag=verror_at_line:5:c-format])])
 
 Makefile.am:
 lib_SOURCES += verror.h verror.c
index b21252f70203c7e3585b322a3256365335b2084f..e3ad1e0950d92c19b49518bfa9d347ade0134700 100644 (file)
@@ -1,6 +1,12 @@
 Description:
 a wrapper around printf that calls error upon ENOMEM or EILSEQ errors
 
+Notice:
+If you are using GNU gettext version 0.16.1 or older, add the following options
+to XGETTEXT_OPTIONS in your po/Makevars:
+  --flag=xprintf:1:c-format --flag=xvprintf:1:c-format
+  --flag=xfprintf:2:c-format --flag=xvfprintf:2:c-format
+
 Files:
 lib/xprintf.h
 lib/xprintf.c
@@ -13,6 +19,11 @@ stdarg
 stdio
 
 configure.ac:
+m4_ifdef([AM_XGETTEXT_OPTION],
+  [AM_XGETTEXT_OPTION([--flag=xprintf:1:c-format])
+   AM_XGETTEXT_OPTION([--flag=xvprintf:1:c-format])
+   AM_XGETTEXT_OPTION([--flag=xfprintf:2:c-format])
+   AM_XGETTEXT_OPTION([--flag=xvfprintf:2:c-format])])
 
 Makefile.am:
 lib_SOURCES += xprintf.h xprintf.c
index 984509cb420b411f0c857e184bab37b2074cc718..18be1fe39db0a3e26dbff309742c0a27ef57721a 100644 (file)
@@ -1,6 +1,10 @@
 Description:
 vasprintf and asprintf with out-of-memory checking.  Also see xalloc-die.
 
+Notice:
+If you are using GNU gettext version 0.16.1 or older, add the following options
+to XGETTEXT_OPTIONS in your po/Makevars: --flag=xasprintf:1:c-format
+
 Files:
 lib/xvasprintf.h
 lib/xvasprintf.c
@@ -16,6 +20,8 @@ stdarg
 
 configure.ac:
 gl_XVASPRINTF
+m4_ifdef([AM_XGETTEXT_OPTION],
+  [AM_XGETTEXT_OPTION([--flag=xasprintf:1:c-format])])
 
 Makefile.am:
 lib_SOURCES += xvasprintf.h xvasprintf.c xasprintf.c