🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #1078

Re: __chip is evil

#1078
From: Guy Harris
Date: Tue, 16 Jan 1990 18:13
27 lines
1638 bytes
>I would have thought that something like
>
>#pragma K&R
>
>would be highly desired, for those cases where the traditional unix
>interpretation of K&R has been different .....

How about the "-Xt" flag, such as, if I remember correctly, appears in
AT&T's S5R4 C compiler?  The "traditional UNIX interpretation of K&R"
didn't include "#pragma", so the proper response of the compiler to such
a #pragma might be to turn the "K&R" flag on and then reject the
"#pragma".... :-)

More to the point, it's probably easier to whack your Makefile to put in
"-Xt", or some such flag (I think GCC has a similar flag, but with a
different name) than to whack all your source files to include the
"#pragma".

>Is everyone that certain that old codes don't matter anymore ? Or is
>this not the preferred "spelling" ?

"Spelling" of what?  I prefer "programs" to "codes", myself, but then I
don't really come from the scientific programming community. :-)

No, I don't think anyone's certain that C programs written to older C
semi-standards and implementations don't matter.  However, they may not
think that a "#pragma" is the right solution, either....
Technical Details
Message-ID: <2821@auspex.auspex.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!auspex!guy
References: <85006@linus.UUCP> <4839@sugar.hackercorp.com> <86113@linus.UUCP> <4919@sugar.hackercorp.com> <11939@smoke.BRL.MIL> <KHB.90Jan15210156@chiba.kbierman@sun.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!auspex!guy
From: guy@auspex.auspex.com (Guy Harris)
Newsgroups: comp.std.c
Subject: Re: __chip is evil
Message-ID: <2821@auspex.auspex.com>
Date: 16 Jan 90 18:13:00 GMT
References: <85006@linus.UUCP> <4839@sugar.hackercorp.com> <86113@linus.UUCP> <4919@sugar.hackercorp.com> <11939@smoke.BRL.MIL> <KHB.90Jan15210156@chiba.kbierman@sun.com>
Organization: Auspex Systems, Santa Clara
Lines: 27