odd lint errors
utzoo!decvax!ucbvax!unix-wizards
utzoo!decvax!ucbvax!unix-wizards
Sun Sep 27 19:40:42 AEST 1981
>From CSVAX.dmr at 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
More information about the Comp.unix.wizards
mailing list