Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utcs!mnetor!seismo!nbires!hao!hplabs!tektronix!uw-beaver!uw-june!entropy!dataio!bright From: bright@dataio.UUCP Newsgroups: net.sources Subject: Re: ifdef filter Message-ID: <1047@dataio.UUCP> Date: Sat, 19-Jul-86 17:21:19 EDT Article-I.D.: dataio.1047 Posted: Sat Jul 19 17:21:19 1986 Date-Received: Mon, 21-Jul-86 03:09:24 EDT References: <323@enmasse.UUCP> Reply-To: bright@dataio.UUCP (Walter Bright Organization: Data I/O Corp., Redmond WA Lines: 10 In article <323@enmasse.UUCP> keith@enmasse.UUCP (Keith Crews) writes: >It often happens that software packages are set up to run on so many >configurations that it is hard to read the code because of all the ifdefs. >That is, filter out everything that is not going to be expanded by cpp while >retaining the ifdefs that are going to be expanded, just for comment value. >Ideally the output, when compiled, would produce exactly the same results as the >original. Does anyone have anything like this? The Datalight C compiler does this if you use the -e and -l switches on the command line.