Nicolás Lichtmaier <nick@reloco.com.ar> writes:
> format_arg:
> This function attribute declares the function as receiving a
> mallloc style string. This is used in conjuction with gettext, so that
> xgettext can properly mark the strings as being printf format
> strings. Currently subversion lists all these functions when invoking
> xgettext, this is awful.
The xgettext program of GNU Gettext 0.14.5 does not parse __attribute__
in C source files, so Subversion must list the functions when invoking
xgettext, regardless of whether it uses the format_arg attribute.
This attribute just allows GCC to recognize the format string at compile
time and warn if the format specifiers in it do not match the arguments
of the other function, as in printf(my_gettext(foo, "%ld"), 1).
- application/pgp-signature attachment: stored
Received on Tue Jul 11 11:34:36 2006