Article View: comp.std.c
Article #1075Re: #Pragma K&R (was: __chip is evil)
From: Doug Gwyn
Date: Tue, 16 Jan 1990 11:18
Date: Tue, 16 Jan 1990 11:18
19 lines
1574 bytes
1574 bytes
In article <KHB.90Jan15210156@chiba.kbierman@sun.com> khb@chiba.kbierman@sun.com (Keith Bierman - SPD Advanced Languages) writes: >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 ..... What makes you think that "the traditional interpretation" had ever been well defined? If it had been, we would have had considerably less work to do to prepare the C Standard. #pragma K&R would be essentially a contradiction, since few K&R1 compilers would accept source code containing that preprocessor directive. Thus some other approach to backward compatibility would be much better. AT&T is providing backward compatibility in UNIX System V Release 4.0 via options to the "cc" command. GNU's "gcc" takes a similar approach. Some vendors have simply provided totally separate compilers, with the ANSI C version newly engineered and their older one basically unchanged.
Technical Details
Message-ID:
<11959@smoke.BRL.MIL>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uwm.edu!zaphod.mps.ohio-state.edu!samsung!aplcen!haven!adm!smoke!gwynReferences:
<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!mailrus!uwm.edu!zaphod.mps.ohio-state.edu!samsung!aplcen!haven!adm!smoke!gwyn From: gwyn@smoke.BRL.MIL (Doug Gwyn) Newsgroups: comp.std.c Subject: Re: #Pragma K&R (was: __chip is evil) Message-ID: <11959@smoke.BRL.MIL> Date: 16 Jan 90 11:18:26 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> Reply-To: gwyn@brl.arpa (Doug Gwyn) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 19