delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/06/05/11:50:12

From: Andrew Crabtree <andrewc AT typhoon DOT rose DOT hp DOT com>
Message-Id: <199706051546.AA231665597@typhoon.rose.hp.com>
Subject: Re: POSIX and ANSI?
To: blizzar AT hem1 DOT passagen DOT se (Peter Palotas)
Date: Thu, 05 Jun 1997 8:46:37 PDT
Cc: djgpp AT delorie DOT com
In-Reply-To: <3.0.16.19970606114158.27b740c8@hem1.passagen.se>; from "Peter Palotas" at Jun 5, 97 12:50 (noon)

> Well, actually I want something that would describe ANSI standards, so that
> I can write a program that I am sure is fully ANSI compatible, and
> according to the documents GCC with the -ansi and -pedantic flags does not
> quite fully check that. I don't know, maybe there is some other document
> available on the computer that can tell me about this stuff?

Are you planning on porting your software to a platform that 
gcc does not support?  If not, there probably isn't any good
reason why you would want to do this.  

-pedantic Is used to catch gcc extensions to the C language.  However,
it is easily circumvented by using the __ forms of them which
do not generate warnings.

-ansi can pick up on differences between K&R and ANSI C.


Try the C FAQ maybe.  It lists a lot of common hangups about ANSI
C.  Or spend the money for the standard, but its not an easy read.


Andrew


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019