🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #6035

Re: I can't find a good definition anywhere...

#6035
From: Norman Diamond
Date: Mon, 15 May 1989 02:37
17 lines
1336 bytes
OK, most compilers will have #pragmas that can provide a non-ANSI
interpretation of a program that looks like a strictly conformant
program.  Any compiler that claims ANSI conformance will have to be
capable of ignoring such #pragmas, perhaps in a mode that is set by
using flag -~P (no pragma).  Bet there's only one person on the net
who would use that flag ;-).

Of course, such a flag isn't implemented yet, so here's a workaround:

.c.o:
	sed -e "/^[ 	]*#[ 	]*pragma/d" < $*.c | $(CC) $(CFLAGS) -c -o $@

--
Norman Diamond, Sony Computer Science Lab (diamond%csl.sony.co.jp@relay.cs.net)
  The above opinions are my own.   |  Why are programmers criticized for
  If they're also your opinions,   |  re-implementing the wheel, when car
  you're infringing my copyright.  |  manufacturers are praised for it?
Technical Details
Message-ID: <10249@socslgw.csl.sony.JUNET>
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!sun-barr!cs.utexas.edu!uunet!kddlab!titcca!sragwa!wsgw!socslgw!diamond!diamond

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!sun-barr!cs.utexas.edu!uunet!kddlab!titcca!sragwa!wsgw!socslgw!diamond!diamond
From: diamond@diamond.csl.sony.junet (Norman Diamond)
Newsgroups: comp.std.c
Subject: Re: I can't find a good definition anywhere...
Message-ID: <10249@socslgw.csl.sony.JUNET>
Date: 15 May 89 02:37:49 GMT
Sender: news@csl.sony.JUNET
Reply-To: diamond@csl.sony.junet (Norman Diamond)
Organization: Sony Computer Science Laboratory Inc., Tokyo, Japan
Lines: 17