LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] gcc and printf style functions

[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
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


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!
RSS Version
Powered by Dell