Date: Sun, 7 Jun 1998 11:07:07 -0400 From: "Gregory D Moncreaff" <moncrg@ma.ultranet.com> To: "Matthew Hunt" <mph@pobox.com>, "Mike Smith" <mike@smith.net.au>, <hackers@FreeBSD.ORG> Subject: Re: Irritating cpp feature Message-ID: <002301bd9225$f1527480$804106d1@micron>
next in thread | raw e-mail | index | archive | help
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 <mph@pobox.com> To: Mike Smith <mike@smith.net.au>; hackers@FreeBSD.ORG <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 <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 > ------=_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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?002301bd9225$f1527480$804106d1>