[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Function attributes

From: Kalle Olavi Niemitalo <kon_at_iki.fi>
Date: 2006-07-11 11:33:30 CEST

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

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.