Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 May 1995 18:42:17 -0700 (PDT)
From:      "Rodney W. Grimes" <rgrimes@gndrsh.aac.dev.com>
To:        obrien@leonardo.net (Mike O'Brien)
Cc:        terry@cs.weber.edu, gj@FreeBSD.org, hackers@FreeBSD.org
Subject:   Re: This one looks very very suspecious to me....
Message-ID:  <199505100142.SAA06135@gndrsh.aac.dev.com>
In-Reply-To: <199505092321.QAA00215@caern.protocorp.com> from "Mike O'Brien" at May 9, 95 04:21:05 pm

next in thread | previous in thread | raw e-mail | index | archive | help
> 
> 	One problem with #ifdef as opposed to commenting something out
> is that the current version of GCC seems to (try to) parse character
> constants inside #ifdef blocks.  Use of apostrophes inside #ifdef
> comment blocks caused me fits while trying to port the Rand editor,
> for example.  Previous versions of the compiler didn't care.

I ran into this too, trying to fix -Wcomment by putting some of the
offending comment blocks that would be hard to change to *not* have
nested comments (go read the sources to indent, and compile them
-Wcomment to see what I am talking about.)

#if 0
	/* We are going to get an error here /* even though this
	 * is inside an #if 0
	 */
#endif

> 
> Mike O'Brien
> 


-- 
Rod Grimes                                      rgrimes@gndrsh.aac.dev.com
Accurate Automation Company                   Custom computers for FreeBSD



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199505100142.SAA06135>