warning: '/*' within comment
Karl Heuer
karl at haddock.ima.isc.com
Tue Jun 5 07:26:18 AEST 1990
In article <AaOZGd_00as98coVU9 at andrew.cmu.edu> ghoti+ at andrew.cmu.edu (Adam Stoller) writes:
>Use the alternate style of commenting:
>#if 0
>Sample usage:
> mkscript src/*.c src/*.h src/makefile man/* readme > dist.txt
>#endif /* 0 */
Won't work. The `#endif' has been commented out by the first `/*' inside.
More generally, `#if 0...#endif' should not be considered a `comment', except
in the sense of `commenting out code'. The contents are still lexed into C
tokens, which is why it's also illegal to say
#if 0
The compiler won't like this
#endif
Karl W. Z. Heuer (karl at ima.ima.isc.com or harvard!ima!karl), The Walking Lint
More information about the Comp.std.c
mailing list