bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: new module: xprintf


From: Bruno Haible
Subject: Re: new module: xprintf
Date: Sun, 28 Oct 2007 21:34:20 +0100
User-agent: KMail/1.5.4

Jim Meyering wrote on 2007-10-20:
> Here's what I want :-)
> 
>     Simply add an attribute to each affected module indicating that a
>     function takes a printf-style format string, and then let tools do
>     the rest, possibly even including deriving the arg offset based on
>     attribute directives in header files.

I understand this vision :-) But that leads into the business of analyzing
the declarations in header files, which requires either a good parser
(capable of analyzing #ifs, so as to simulate the declarations that gcc
would see) or some superficial analysis, which breaks as soon as macros
that expand into __attribute__(...) are used.

Neither of these two choices are appealing to me. So I'm doing the maximum
I can do in this direction, namely introduce a new macro AM_XGETTEXT_OPTION.

Bruno





reply via email to

[Prev in Thread] Current Thread [Next in Thread]