Re: Observations relating to r15828.
From: Jonathan Gilbert <o2w9gs702_at_sneakemail.com>
Date: 2005-08-19 21:37:00 CEST
At 06:48 PM 19/08/2005 +0100, Philip Martin wrote:
One approach would be to add an attribute to the declaration of '_',
char *_(const char *msgid) __attribute__((__format_arg__(1),
This tells GCC that when '_' is passed as a format parameter to a
Another alternative, if '_' cannot be changed, would be to change:
printf(_("foo %s bar"), arg);
...into:
gtprintf("foo %s bar", arg);
...and then define gtprintf as:
int gtprintf(char *format, ...) __attribute__((__format__(__printf__, 1,
va_start(ap, format);
return ret;
For functions like these, I can't think of any reason not to always inline
I don't really know that much about gettext or GCC attributes, I just
Jonathan Gilbert
---------------------------------------------------------------------
|
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.