From owner-freebsd-hackers Sun Jun 7 08:06:32 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id IAA11055 for freebsd-hackers-outgoing; Sun, 7 Jun 1998 08:06:32 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from antiochus-fe0.ultra.net (antiochus-fe0.ultra.net [146.115.8.188]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id IAA10958 for ; Sun, 7 Jun 1998 08:06:13 -0700 (PDT) (envelope-from moncrg@ma.ultranet.com) Received: from micron (d128.dial-2.cmb.ma.ultra.net [209.6.65.128]) by antiochus-fe0.ultra.net (8.8.8/ult.n14767) with SMTP id LAA03910; Sun, 7 Jun 1998 11:05:55 -0400 (EDT) Message-ID: <002301bd9225$f1527480$804106d1@micron> From: "Gregory D Moncreaff" To: "Matthew Hunt" , "Mike Smith" , Subject: Re: Irritating cpp feature Date: Sun, 7 Jun 1998 11:07:07 -0400 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_0020_01BD9204.6912B4C0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 4.72.2106.4 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG This is a multi-part message in MIME format. ------=_NextPart_000_0020_01BD9204.6912B4C0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit you can put anything you want in an #if 0/#endif block. by definition, the preprocessor deletes such before the compiler (which is the only thing that checks code syntax) even sees it -----Original Message----- From: Matthew Hunt To: Mike Smith ; hackers@FreeBSD.ORG Date: Sunday, June 07, 1998 8:48 AM Subject: Re: Irritating cpp feature >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 * 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 > ------=_NextPart_000_0020_01BD9204.6912B4C0 Content-Type: text/x-vcard; name="Gregory Donald Moncreaff.vcf" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="Gregory Donald Moncreaff.vcf" BEGIN:VCARD VERSION:2.1 N:Moncreaff;Gregory;Donald; FN:Gregory Donald Moncreaff TEL;WORK;VOICE:508=3D490-2048 TEL;WORK;FAX:508-490-2086 ADR;HOME:;;po box 388;Marlborough;Massachusetts;01752-0388 LABEL;HOME;ENCODING=3DQUOTED-PRINTABLE:po box 388=3D0D=3D0AMarlborough, = Massachusetts 01752-0388 EMAIL;PREF;INTERNET:moncrg@ma.ultranet.com REV:19980607T150706Z END:VCARD ------=_NextPart_000_0020_01BD9204.6912B4C0-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message