🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #5580

Re: __STDC__ and non-conforming ANSI C compilers

#5580
From: Doug Gwyn
Date: Sat, 14 Jan 1989 12:49
13 lines
1160 bytes
In article <264@microsoft.UUCP> w-colinp@microsoft.uucp (Colin Plumb) writes:
>Personally, I generally thing setting __STDC__ to 0 if a compiler almost
>makes it, but will parse ANSI C programs and, for the most part, compile
>them, is a Good Thing.

We already had this discussion, not long ago in fact.
I maintain that predefining __STDC__ is a mistake, except when the
implementation conforms to the Standard (in which case __STDC__ is
necessarily preset to 1, for the current standard, or some number
greater than 1, presumably, for a future compatible standard).
There is no way you can know what use a programmer is making of
__STDC__.  In fact your guess was wrong for some of the code we
have..
Technical Details
Message-ID: <9371@smoke.BRL.MIL>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!lll-winken!lll-ncis!lll-lcc!ames!haven!adm!smoke!gwyn
References: <898@ubu.warwick.UUCP> <264@microsoft.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!lll-winken!lll-ncis!lll-lcc!ames!haven!adm!smoke!gwyn
From: gwyn@smoke.BRL.MIL (Doug Gwyn )
Newsgroups: comp.std.c
Subject: Re: __STDC__ and non-conforming ANSI C compilers
Message-ID: <9371@smoke.BRL.MIL>
Date: 14 Jan 89 12:49:59 GMT
References: <898@ubu.warwick.UUCP> <264@microsoft.UUCP>
Reply-To: gwyn@brl.arpa (Doug Gwyn (VLD/VMB) <gwyn>)
Organization: Ballistic Research Lab (BRL), APG, MD.
Lines: 13