Xref: utzoo gnu.gcc:276 comp.os.vms:12701 comp.lang.c:16999 Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!decwrl!decvax!ima!haddock!karl From: karl@haddock.ima.isc.com (Karl Heuer) Newsgroups: gnu.gcc,comp.os.vms,comp.lang.c Subject: Re: Problems with GCC and/or VAX LINK Message-ID: <12085@haddock.ima.isc.com> Date: 17 Mar 89 02:35:18 GMT References: <18426@iuvax.cs.indiana.edu> <1732@levels.sait.edu.au> Reply-To: karl@haddock.ima.isc.com (Karl Heuer) Organization: Interactive Systems, Boston Lines: 18 In article <1732@levels.sait.edu.au> ccdn@levels.sait.edu.au (DAVID NEWALL) writes: >A program section which is conditionally _not_ compiled should be treated >like a comment -- it shouldn't matter what's inside the #ifdef/#endif. The following is legal C code: char *x="\ #endif" /* #ifdef foo */ It has always been legal to enclose such code in an #if/#endif. Your suggestion would break this. If you want to prevent sections of code from being compiled, use #if/#endif. If you want to include descriptive text, use a comment. Btw, you said `#ifdef 0'; this should be `#if 0' (or that godawful pdp11ism `#ifdef notdef') Karl W. Z. Heuer (ima!haddock!karl or karl@haddock.isc.com), The Walking Lint