Aucbvax.4079
fa.unix-wizards
utzoo!decvax!ucbvax!unix-wizards
Sun Sep 27 19:40:42 1981
odd lint errors
>From CSVAX.dmr@Berkeley Sun Sep 27 19:24:46 1981
A recent message wondered why lint complains about a program
#if UCB_NKB==1
...
#endif
when the compiler handles it fine. Actually the whole truth was not told.
The program was probably of the form
#define UCB_NKB 1 /* mumble */
etc.
with a comment. Lint calls the preprocessor with the -C flag to
preserve comments (like /* VARARGS */). Unfortunately cpp
preserves the comment in the #define but then fails to ignore it
while parsing the expression after #if.
We still have this too (someone found it just recently). cpp's
author has been notified.
Dennis Ritchie
-----------------------------------------------------------------
gopher://quux.org/ conversion by John Goerzen <
[email protected]>
of
http://communication.ucsd.edu/A-News/
This Usenet Oldnews Archive
article may be copied and distributed freely, provided:
1. There is no money collected for the text(s) of the articles.
2. The following notice remains appended to each copy:
The Usenet Oldnews Archive: Compilation Copyright (C) 1981, 1996
Bruce Jones, Henry Spencer, David Wiseman.