Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!snorkelwacker!bu.edu!mirror!ima!haddock!karl From: karl@haddock.ima.isc.com (Karl Heuer) Newsgroups: comp.std.c Subject: Re: warning: '/*' within comment Message-ID: <16786@haddock.ima.isc.com> Date: 4 Jun 90 21:26:18 GMT References: <1990Jun1.200433.6919@druid.uucp> Reply-To: karl@haddock.ima.isc.com (Karl Heuer) Organization: Interactive Systems, Cambridge, MA 02138-5302 Lines: 17 In article ghoti+@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@ima.ima.isc.com or harvard!ima!karl), The Walking Lint