Skip site navigation (1)Skip section navigation (2)
Date:      07 Jun 1998 17:14:20 +0200
From:      dag-erli@ifi.uio.no (Dag-Erling Coidan =?iso-8859-1?Q?Sm=F8rgrav?= )
To:        Matthew Hunt <mph@pobox.com>
Cc:        Mike Smith <mike@smith.net.au>, hackers@FreeBSD.ORG
Subject:   Re: Irritating cpp feature
Message-ID:  <xzp4sxx452r.fsf@hrotti.ifi.uio.no>
In-Reply-To: Matthew Hunt's message of "Sun, 7 Jun 1998 08:44:15 -0400"
References:  <199806070753.AAA04355@antipodes.cdrom.com> <19980607084415.A261@flarn.dyn.ml.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Matthew Hunt <mph@pobox.com> writes:
> 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.

I can't find anything specific in the draft proposal, but common sense
says it has to be at least *lexically* correct (and a single quote
with no correpsonding closing quote is not lexically correct) unless
your preprocessor is built around a DWIM engine :)

-- 
Noone else has a .sig like this one.

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?xzp4sxx452r.fsf>