🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #4628

Re: Meaning of __STDC__?

#4628
From: Thad Smith
Date: Sat, 13 Jan 1996 16:32
19 lines
1233 bytes
In article <4d6673$8to@mailgate.bridgewater.ne.hcc.com>,
kennedy@   (John W Kennedy) wrote:

>Is there an official statement as to what __STDC__ means?  Does it mean "This
>compiler (in its current operating mode) fully supports ANSI Standard C," or
>does it mean "This compiler (in its current operating mode) disallows all
>extensions to ANSI Standard C."?  

It means that the implementation may be a conforming Standard C
compiler.  Although the intention was probably that it is
defined only when the implementation conforms to Standard C, which
does allow extensions, the only guarantee is that if __STDC__ isn't
defined, then the compiler is not conforming.

On a more practical level, some compilers undefine __STDC__ when
extensions are enabled that make the compiler non-conforming, such as
additional keywords (e.g., "far") or C++ style comments.

Thad
Technical Details
Message-ID: <HN19wQ9ytNRW084yn@csn.net>
Path: arc1-ca.pugleaf.net!teal.csn.net!not-for-mail
References: <4d6673$8to@mailgate.bridgewater.ne.hcc.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!teal.csn.net!not-for-mail
From: thads@csn.net (Thad Smith)
Newsgroups: comp.std.c
Subject: Re: Meaning of __STDC__?
Date: 13 Jan 1996 09:32:21 -0700
Organization: T3 Systems
Message-ID: <HN19wQ9ytNRW084yn@csn.net>
References: <4d6673$8to@mailgate.bridgewater.ne.hcc.com>
Reply-To: ThadSmith@acm.org
NNTP-Posting-Host: 199.117.27.22