Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!sdd.hp.com!hp-pcd!hpcvia!brianh From: brianh@hpcvia.CV.HP.COM (brian_helterline) Newsgroups: comp.lang.c Subject: Re: C, embedded comments and preprocessors Message-ID: <31530019@hpcvia.CV.HP.COM> Date: 20 Sep 90 17:14:55 GMT References: <9009191929.AA13849@lilac.berkeley.edu> Organization: Hewlett-Packard Co., Corvallis, Oregon Lines: 36 mills@ccu.umanitoba.ca (Gary Mills) writes: >lwv27@CAS.BITNET writes: >>I have not been able to afford a copy of the new ANSI std for c, >>and perhaps it clarifies the situation. >You are relying on nested comments, and even the original K&R states >that `comments do not nest'. >>I have for some time commented out portions of code by surrounding them by >>a construct similar to: >A better way to remove some code from the compilation is with: >#ifndef OLD_STUFF >lines of code /* line comment */ >lines of various text's comments >lines of code /* line comment */ >#endif Even better is to use #if 0 lines of code /* line comment */ lines of various text's comments lines of code /* line comment */ #endif