This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Support for %d$c format specifier in diagnostics.c


On Wed, 23 Jul 2003, Ishikawa wrote:

> Yes, for the format checker, 
> I will use the data definitions, etc. as implemented in your patch, but
> I am not quite sure how to accommodate the 
> positional parameter in the checker framework.

There is full support for such formats in the checking code - you'd need
to set the flag FMT_FLAG_USE_DOLLAR and possibly FMT_FLAG_DOLLAR_MULTIPLE.  
That doesn't mean there would be any purpose other than obfuscation for
actually using them directly in source files.

Although the support for checking such formats is probably little used -
as they are generally used in translations only - at least one person must
have used that support (and so $ formats in the source file) in the past,
because there was once a bug report about it (6547).

-- 
Joseph S. Myers
jsm@polyomino.org.uk


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]