This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Support for %d$c format specifier in diagnostics.c
- From: Ishikawa <ishikawa at yk dot rim dot or dot jp>
- To: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Cc: gcc-patches at gcc dot gnu dot org, gdr at integrable-solutions dot net, jsm28 at cam dot ac dot uk, neil at daikokuya dot co dot uk, zack at codesourcery dot com
- Date: Sun, 20 Jul 2003 16:56:25 +0900
- Subject: Re: Support for %d$c format specifier in diagnostics.c
- References: <m19WKhW-000H3mC@standard.erephon> <20030628193135.GA1767@daikokuya.co.uk> <87llvlk3gi.fsf@egil.codesourcery.com> <3EFE65DC.52576EC7@yk.rim.or.jp> <87vfupiglu.fsf@egil.codesourcery.com> <3EFEE0EF.C560ED1A@yk.rim.or.jp> <87isqoiwng.fsf@egil.codesourcery.com> <3F061172.814BA7A0@yk.rim.or.jp> <Pine.LNX.4.56.0307051127540.6302@kern.srcf.societies.cam.ac.uk> <3F0CA938.1FA02D3E@yk.rim.or.jp> <m3vfuayizy.fsf@uniton.integrable-solutions.net> <3F1A1654.4476090C@yk.rim.or.jp> <200307200451.AAA02944@caip.rutgers.edu>
"Kaveh R. Ghazi" wrote:
>
> > This is the second cut for the patch to support positional format
> > specifier for diagnostic messege print routines.
> >
> > Comments/feedback welcome.
>
> Have you considered format checking for this new capability?
>
>
Nope. I must have missed the discussion.
Could you kindly point me to an appropriate posting
in newsgroups/mailing list archives?
But, the short current answer is I thought someone is
going to write an independent static check module
for *.po files, etc..
Maybe the "format checking" refers to this.
(But it was NOT my intention to check the C source files, but
maybe I misunderstood the premise. My main target for
%1$s, etc. would be for *.po files for I18N/L10N work.
I believe this was the background for suggestion from Zack Weinberg,
too.)
Happy Hacking,
Ishikawa, Chiaki
--
int main(void){int j=2003;/*(c)2003 cishikawa. */
char t[] ="<CI> @abcdefghijklmnopqrstuvwxyz.,\n\"";
char *i ="g>qtCIuqivb,gCwe\np@.ietCIuqi\"tqkvv is>dnamz";
while(*i)((j+=strchr(t,*i++)-(int)t),(j%=sizeof t-1),
(putchar(t[j])));return 0;}/* under GPL */