Article View: comp.std.c
Article #5737Re: New cpp predefines for POSIX/ANSI C
From: Alan J Rosenthal
Date: Fri, 24 Feb 1989 04:44
Date: Fri, 24 Feb 1989 04:44
29 lines
1701 bytes
1701 bytes
In article <12040014@hpfcdc.HP.COM> jimb@hpfcdc.HP.COM (Jim Bigelow) writes:
>Since lint(1) defines the preprocessor symbol lint when it runs cpp, I
>don't think that lint should be transformed to __lint -- any comments?
I think it should. The advantage of not intruding in the user's name space is
just as great when they're writing programs that they intend to lint as it is
when they're writing programs that they do not intend to lint. (Besides, one
should intend to lint all programs anyway.)
The current lint documentation says:
The preprocessor symbol "lint" is defined, in order to allow certain
questionable code to be altered or removed for lint. Therefore, the symbol
"lint" should be thought of as a reserved word for all code that is planned
to be checked by lint.
[Sun unix 3.5 man lint(1)]
In my opinion this is a wart, at least these days if not in the first place.
Get rid of it.
To put it another way, people writing portable C programs should be able to
lint them without having to write lint-ized C programs. Having to treat
``lint'' as a reserved word is writing a lint-ized C program.
ajr
--
"The goto statement has been the focus of much of this controversy."
-- Aho & Ullman, Principles of Compiler Design, A-W 1977, page 54.
Technical Details
Message-ID:
<8902240444.AA05599@champlain.dgp.toronto.edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!dgp.toronto.edu!flapsReferences:
<12040014@hpfcdc.HP.COM>Show Full Headers
Complete Article Headers
Newsgroups: comp.std.c Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!dgp.toronto.edu!flaps From: flaps@dgp.toronto.edu (Alan J Rosenthal) Subject: Re: New cpp predefines for POSIX/ANSI C Message-ID: <8902240444.AA05599@champlain.dgp.toronto.edu> Organization: Dynamic Graphics Project, University of Toronto References: <12040014@hpfcdc.HP.COM> Date: Thu, 23 Feb 89 23:44:11 EST