[ILUG] gcc and printf style functions
kevin lyda
kevin+dated+1110440678.dd420f at ie.suberic.net
Sat Mar 5 07:44:23 GMT 2005
On Sat, Mar 05, 2005 at 06:43:50AM +0000, Paul Jakma wrote:
> > i think it should be. and i think the argument for it is that the
> > format escapes are actually handled by the target libc. gcc seems to
> > know glibc and various versions of ansi/iso c. but gcc targets platforms
> > with other libc's - the mingw gcc uses the ms libc.
> The printf might be platform supplied, but the check of arguments
> against format string at compile time is pure GCC surely :)
uh... yes.
the point is that if there was a syntax for defining what gcc checks,
rather than a hardcoded bit in the compiler, it would allow for more
flexibility. something like:
#pragma define_format_archtype __sqlite__ {__printf__},{"%q",char *},{"%Q",char *}
kevin
--
kevin lyda ~ dems for torture: salazar(co/10) landrieu(la/08) pryor(ar/08)
kevin at ie.suberic.net ~ nelson(fl/06) nelson(ne/06) lieberman(ct/06) 2/2/04
Those who refuse to raise their voices against something as clearly evil
as torture are enablers, if not collaborators. --Bob Herbert, 2/11/04
More information about the ILUG
mailing list