Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 07 Jun 1998 00:53:48 -0700
From:      Mike Smith <mike@smith.net.au>
To:        hackers@FreeBSD.ORG
Subject:   Irritating cpp feature
Message-ID:  <199806070753.AAA04355@antipodes.cdrom.com>

next in thread | raw e-mail | index | archive | help

I'm coming across an irritating cpp feature trying to port a large body 
of foreign code; namely:


#if 0
This is pointless text with one of ' in it.
#endif

Despite the #if-fing out, the quote is still parsed.  Unfortunately, 
this conflicts with a substantial body of #if'd documentation, which 
contains (you guessed it) more comment delimiters.

The code obviously builds OK on other gcc-wielding platforms; is there 
something funny about our preprocessor?

-- 
\\  Sometimes you're ahead,       \\  Mike Smith
\\  sometimes you're behind.      \\  mike@smith.net.au
\\  The race is long, and in the  \\  msmith@freebsd.org
\\  end it's only with yourself.  \\  msmith@cdrom.com



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message



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