warning: '/*' within comment
Mark Harrison
harrison at necssd.NEC.COM
Thu Jun 7 00:37:26 AEST 1990
In article <16786 at haddock.ima.isc.com>, karl at haddock.ima.isc.com
(Karl Heuer) writes:
> 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
Are you sure about this? I tried your example, and it both compiled and
linted. If this is true, then the following should also not work:
#if MICROSOFT
extern far char * x; /* however it's done */
#endif
#if VMS
extern char * x$something; /* however it's done */
#endif
--
Mark Harrison harrison at necssd.NEC.COM
(214)518-5050 {necntc, cs.utexas.edu}!necssd!harrison
standard disclaimers apply...
More information about the Comp.std.c
mailing list