🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #5628

Re: __STDC__ and non-conforming ANSI C compilers

#5628
From: Mark H. Colburn
Date: Thu, 19 Jan 1989 21:54
22 lines
1739 bytes
In article <2797@ficc.uu.net> peter@ficc.uu.net (Peter da Silva) writes:
>By the by, some people are claiming that putting '-DFOO' on the command
>line makes the compiler non-conforming.

I do not think that the -DFOO on the command line should invalidate the
__STDC__ flag.  Think of it this way:  the -DFOO was specified by the user,
not the compiler itself, therefore, it should be allowed.  

How would this be different from the user specifying #define FOO on the
first line of the compilation unit?  Unless, of course, the user is not 
allowed to corrupt the namespace of the compiler either, which would make
using the compiler at all a non-portable application.  (More :-)'s than 
you can imagine.)

By the same token, the user could specify -D__STDC__ on the command line
to the C compiler.  That would not necessarily make the compiler being
used an ANSI C conforming compiler...

-- 
Mark H. Colburn                  "They didn't understand a different kind of 
NAPS International                smack was needed, than the back of a hand, 
mark@jhereg.mn.org                something else was always needed."
Technical Details
Message-ID: <398@jhereg.Jhereg.MN.ORG>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!lll-winken!ncis.llnl.gov!helios.ee.lbl.gov!pasteur!agate!bionet!csd4.milw.wisc.edu!nic.MR.NET!eta!com50!jhereg!mark
References: <9369@smoke.BRL.MIL> <2788@mhres.mh.nl> <9392@smoke.BRL.MIL> <9416@smoke.BRL.MIL> <2797@ficc.uu.net> <9437@smoke.BRL.MIL>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!lll-winken!ncis.llnl.gov!helios.ee.lbl.gov!pasteur!agate!bionet!csd4.milw.wisc.edu!nic.MR.NET!eta!com50!jhereg!mark
From: mark@jhereg.Jhereg.MN.ORG (Mark H. Colburn)
Newsgroups: comp.std.c
Subject: Re: __STDC__ and non-conforming ANSI C compilers
Message-ID: <398@jhereg.Jhereg.MN.ORG>
Date: 19 Jan 89 21:54:31 GMT
References: <9369@smoke.BRL.MIL> <2788@mhres.mh.nl> <9392@smoke.BRL.MIL> <9416@smoke.BRL.MIL> <2797@ficc.uu.net> <9437@smoke.BRL.MIL>
Reply-To: mark@jhereg.MN.ORG (Mark H. Colburn)
Organization: Minnetech Consulting, Inc., St. Paul MN
Lines: 22