Why does lint foul up on #if 0

John Gilmore gnu at sun.uucp
Fri Jan 27 19:42:25 AEST 1984


I believe this is a cpp bug.  Lint is a shell script -- try catting it.
It invokes "cpp -C -Dlint" on your files and processes the output.
The -C is to keep the comments (eg, /*NOTREACHED*/).  However, some versions
of cpp have a bug where a comment on an #if screws up.  This never
bothers the compiler since it asks that cpp strip comments anyway, but
shows up for lint.

There's probably a relatively trivial fix for this problem in cpp but
I don't have it at hand.  Any volunteers?



More information about the Comp.lang.c mailing list