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
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!