🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #379

Evidence that __STDC__ should be used properly

#379
From: Doug Gwyn
Date: Wed, 26 Jul 1989 12:36
20 lines
1439 bytes
Here is additional evidence why it is NOT "helpful" for C compilers that
provide support for functions prototypes to advertise themselves as "ANSI
C compatible" via __STDC__ when they don't fully conform to the Standard:

	[Extracted from a trip report I recently received:]

	The equipment available for the feasibility study was an Apollo
	DN-1000, running the very latest version of UNIX from Apollo,
	version SR10.1.  ... our first task was to "port" the software
	over.  This took a significant amount of time, owing to various
	deficiencies in the Apollo software.  ...

	The C compiler on the Apollo identifies itself as an ANSI-Standard
	compiler (__STDC__ = 1), yet numerous ANSI features were missing,
	including "#" token-pasting and the "const" keyword.  In addition,
	the ANSI header files stdlib.h, stdarg.h, stddef.h did not exist.
	The ANSI "stdarg" implementation (using the "..." notation) did
	not work.  The older "varargs" implementation conflicted with all
	the function prototypes.  With -U__STDC__, the old "varargs"
	package came to life.
Technical Details
Message-ID: <10609@smoke.BRL.MIL>
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!ames!haven!adm!smoke!gwyn

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!ames!haven!adm!smoke!gwyn
From: gwyn@smoke.BRL.MIL (Doug Gwyn)
Newsgroups: comp.std.c
Subject: Evidence that __STDC__ should be used properly
Keywords: __STDC__
Message-ID: <10609@smoke.BRL.MIL>
Date: 26 Jul 89 12:36:02 GMT
Organization: Ballistic Research Lab (BRL), APG, MD.
Lines: 20