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

Joseph S. Myers jsm@polyomino.org.uk
Tue Jul 22 16:08:00 GMT 2003


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



More information about the Gcc-patches mailing list