Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 7 Jun 1998 08:44:15 -0400
From:      Matthew Hunt <mph@pobox.com>
To:        Mike Smith <mike@smith.net.au>, hackers@FreeBSD.ORG
Subject:   Re: Irritating cpp feature
Message-ID:  <19980607084415.A261@flarn.dyn.ml.org>
In-Reply-To: <199806070753.AAA04355@antipodes.cdrom.com>; from Mike Smith on Sun, Jun 07, 1998 at 12:53:48AM -0700
References:  <199806070753.AAA04355@antipodes.cdrom.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Jun 07, 1998 at 12:53:48AM -0700, Mike Smith wrote:

> #if 0
> This is pointless text with one of ' in it.
> #endif
[...]
> The code obviously builds OK on other gcc-wielding platforms; is there 
> something funny about our preprocessor?

I think there is something correct about our preprocessor.  I Don't
Have The Standard In Front Of Me (TM) but I think code that is
#ifdef'ed out must still be syntactically correct, so the sample that
you provided above is incorrect code.  If somebody is using #ifdef
around English text, that is wrong.

Anybody with the Standard care to verify?  The only one I have is
the reprint of the Library portion of the Standard in Plauger's book.

-- 
Matthew Hunt <mph@pobox.com> * Stay close to the Vorlon.
http://www.pobox.com/~mph/pgp.key for PGP public key 0x67203349.

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?19980607084415.A261>