From owner-freebsd-hackers Sun Jun 7 13:21:57 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA00586 for freebsd-hackers-outgoing; Sun, 7 Jun 1998 13:21:57 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from mail.camalott.com (root@[208.203.140.2]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA00581 for ; Sun, 7 Jun 1998 13:21:52 -0700 (PDT) (envelope-from joelh@gnu.org) Received: from detlev.UUCP (tex-109.camalott.com [208.229.74.109] (may be forged)) by mail.camalott.com (8.8.7/8.8.5) with ESMTP id PAA01264; Sun, 7 Jun 1998 15:20:39 -0500 Received: (from joelh@localhost) by detlev.UUCP (8.8.8/8.8.8) id PAA18398; Sun, 7 Jun 1998 15:21:29 -0500 (CDT) (envelope-from joelh) Date: Sun, 7 Jun 1998 15:21:29 -0500 (CDT) Message-Id: <199806072021.PAA18398@detlev.UUCP> To: dufault@hda.com CC: moncrg@ma.ultranet.com, mph@pobox.com, mike@smith.net.au, hackers@FreeBSD.ORG In-reply-to: <199806071601.MAA13243@hda.hda.com> (message from Peter Dufault on Sun, 7 Jun 1998 12:01:54 -0400 (EDT)) Subject: Re: Irritating cpp feature From: Joel Ray Holveck Reply-to: joelh@gnu.org References: <199806071601.MAA13243@hda.hda.com> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG >> 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 > Not true according to info gcc. However, -traditional > works around it: > The best solution to such a problem is to put the text into an > actual C comment delimited by `/*...*/'. However, `-traditional' > suppresses these error messages. Note that with gcc 2.8, you may prefer -traditional-cpp. This does have some other syntactic implications, of course. Happy hacking, joelh -- Joel Ray Holveck - joelh@gnu.org - http://www.wp.com/piquan Fourth law of programming: Anything that can go wrong wi sendmail: segmentation violation - core dumped To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message