🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.os2
Article #271

Re: MSC __STDC__ strange value

#271
From: Marty Leisner
Date: Thu, 07 Dec 1989 22:33
20 lines
1260 bytes
In article <9692@pyr.gatech.EDU> is813cs@pyr.gatech.edu (Cris Simpson) writes:
>   According to K&R2, (pg 233), __STDC__ must be defined, as well as
>(insert your own __ 's)  LINE, FILE, DATE, TIME.   However, since
>5.1 is not ANSI, __STDC__ can't be 1.
>

__STDC__ only needs to be defined in a conforming compiler.

It makes no sense to define __STDC__ to be 0 (except to confuse everyone).

I work with a TI34010 and the TI supplied C compiler also defines __STDC__ to 0.  At least with MSC, that's trying to be an ansi C compiler.  TI only claims to be a
K&R C compiler, if that much.

This STDC == 0 stuff has caused  nothing but grief.

I'm close to the point to patching the preprocessor binary to remove this nonsense.


marty leisner
leisner.henr@xerox.com
Technical Details
Message-ID: <4714@arisia.Xerox.COM>
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!usc!apple!sun-barr!lll-winken!arisia!leisner
References: <223@bohra.cpg.oz> <9692@pyr.gatech.EDU>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!usc!apple!sun-barr!lll-winken!arisia!leisner
From: leisner@arisia.Xerox.COM (Marty Leisner)
Newsgroups: comp.os.os2,comp.lang.c,comp.std.c
Subject: Re: MSC __STDC__ strange value
Message-ID: <4714@arisia.Xerox.COM>
Date: 7 Dec 89 22:33:14 GMT
References: <223@bohra.cpg.oz> <9692@pyr.gatech.EDU>
Reply-To: leisner@arisia.UUCP (Marty Leisner)
Organization: Xerox Palo Alto Research Center
Lines: 19