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