diff options
author | Bruno Haible <bruno@clisp.org> | 2007-10-28 21:39:15 +0100 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2007-10-28 21:39:15 +0100 |
commit | 85c433f05b176d4db91c76619cdd756c17f94705 (patch) | |
tree | 69d37734afebdfe196abcc30fd6750e01adf80fc /modules/xprintf | |
parent | e74e1f1540f02fc57e442a6281c62f9594af15e5 (diff) | |
download | gnulib-85c433f05b176d4db91c76619cdd756c17f94705.tar.gz |
Notify xgettext about functions that have a format string argument.
Diffstat (limited to 'modules/xprintf')
-rw-r--r-- | modules/xprintf | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/modules/xprintf b/modules/xprintf index b21252f702..e3ad1e0950 100644 --- a/modules/xprintf +++ b/modules/xprintf @@ -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 |