From owner-freebsd-hackers Sun Jun 7 08:15:02 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id IAA12843 for freebsd-hackers-outgoing; Sun, 7 Jun 1998 08:15:02 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from ifi.uio.no (0@ifi.uio.no [129.240.64.2]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id IAA12804 for ; Sun, 7 Jun 1998 08:14:54 -0700 (PDT) (envelope-from dag-erli@ifi.uio.no) Received: from hrotti.ifi.uio.no (2602@hrotti.ifi.uio.no [129.240.64.15]) by ifi.uio.no (8.8.8/8.8.7/ifi0.2) with ESMTP id RAA16423; Sun, 7 Jun 1998 17:14:21 +0200 (MET DST) Received: (from dag-erli@localhost) by hrotti.ifi.uio.no ; Sun, 7 Jun 1998 17:14:20 +0200 (MET DST) Mime-Version: 1.0 To: Matthew Hunt Cc: Mike Smith , hackers@FreeBSD.ORG Subject: Re: Irritating cpp feature References: <199806070753.AAA04355@antipodes.cdrom.com> <19980607084415.A261@flarn.dyn.ml.org> Organization: University of Oslo, Department of Informatics X-url: http://www.stud.ifi.uio.no/~dag-erli/ X-email-address-1: dag-erli@ifi.uio.no (for private or study-related mail) X-email-address-2: dagsm@hypnotech.no (for job-related mail) X-email-address-3: des@FreeBSD.org (for FreeBSD-related mail) X-email-address-4: finrod@ewox.org (for demoscene-related mail) X-disclaimer-1: I speak only for myself. The views expressed in this message X-disclaimer-2: are not those of the University of Oslo, the FreeBSD project, X-disclaimer-3: or any other organization or company to which I am or have at X-disclaimer-4: some time been affiliated. X-Stop-Spam: http://www.cauce.org/ From: dag-erli@ifi.uio.no (Dag-Erling Coidan =?iso-8859-1?Q?Sm=F8rgrav?= ) Date: 07 Jun 1998 17:14:20 +0200 In-Reply-To: Matthew Hunt's message of "Sun, 7 Jun 1998 08:44:15 -0400" Message-ID: Lines: 23 X-Mailer: Gnus v5.5/Emacs 19.34 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Matthew Hunt 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