[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: Nicolás Lichtmaier <nick_at_reloco.com.ar>
Date: 2006-07-13 03:55:29 CEST

>> 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).
>

Yes, I've realized thart after posting the message. There seem to be no
better way to handle this.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Jul 13 03:56:27 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.