🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #1384

Re: warning: '/*' within comment

#1384
From: Karl Heuer
Date: Mon, 04 Jun 1990 21:26
17 lines
1170 bytes
In article <AaOZGd_00as98coVU9@andrew.cmu.edu> 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
Technical Details
Message-ID: <16786@haddock.ima.isc.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!snorkelwacker!bu.edu!mirror!ima!haddock!karl
References: <1990Jun1.200433.6919@druid.uucp> <AaOZGd_00as98coVU9@andrew.cmu.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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> <AaOZGd_00as98coVU9@andrew.cmu.edu>
Reply-To: karl@haddock.ima.isc.com (Karl Heuer)
Organization: Interactive Systems, Cambridge, MA 02138-5302
Lines: 17