🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #117

Re: preprocessing subterfuge

#117
From: Paul Eggert
Date: Mon, 10 Aug 1992 08:03
18 lines
1341 bytes
enag@ifi.uio.no (Erik Naggum) writes:
>Where can I get a compiler which rejects non-conforming code?

gurgle@netcom.com (Pete Gontier) replies:
>Try 'gcc' with the -pedantic switch.

That's not quite what Naggum asked for.  The GCC documentation says:

	Some users try to use `-pedantic' to check programs for strict ANSI C
	conformance.  They soon find that it does not do quite what they want:
	it finds some non-ANSI practices, but not all--only those for which
	ANSI C *requires* a diagnostic.

	A feature to report any failure to conform to ANSI C might be useful in
	some instances, but would require considerable additional work and
	would be quite different from `-pedantic'.  We recommend, rather, that
	users take advantage of the extensions of GNU C and disregard the
	limitations of other compilers.
Technical Details
Message-ID: <bjdA_oLX@twinsun.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!wupost!sdd.hp.com!elroy.jpl.nasa.gov!ucla-cs!twinsun!eggert
References: <1992Aug7.001510.13418@mri.com> <MJN.92Aug9024600@pseudo.uucp> <1992Aug9.144525.4521@taumet.com> <23277A@erik.naggum.no> <_=2m!3_.gurgle@netcom.com>

Show Full Headers
Complete Article Headers
Newsgroups: comp.std.c
Path: arc1-ca.pugleaf.net!sparky!uunet!wupost!sdd.hp.com!elroy.jpl.nasa.gov!ucla-cs!twinsun!eggert
From: eggert@twinsun.com (Paul Eggert)
Subject: Re: preprocessing subterfuge
Message-ID: <bjdA_oLX@twinsun.com>
Sender: usenet@twinsun.com
Nntp-Posting-Host: bi
Organization: Twin Sun, Inc
References: <1992Aug7.001510.13418@mri.com> <MJN.92Aug9024600@pseudo.uucp> <1992Aug9.144525.4521@taumet.com> <23277A@erik.naggum.no> <_=2m!3_.gurgle@netcom.com>
Date: Mon, 10 Aug 1992 08:03:49 GMT
Lines: 18