Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!ll-xn!cit-vax!amdahl!wg3b20!narayan From: narayan@wg3b20.UUCP (The Champ) Newsgroups: net.sources Subject: Re: Re: ifdef filter Message-ID: <640@wg3b20.UUCP> Date: Mon, 21-Jul-86 13:23:35 EDT Article-I.D.: wg3b20.640 Posted: Mon Jul 21 13:23:35 1986 Date-Received: Thu, 24-Jul-86 01:53:16 EDT References: <323@enmasse.UUCP> <924@cyb-eng.UUCP> Organization: The Wollongong Group., Palo Alto, CA 94303. Lines: 36 > > 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. > > I would like a filter for C programs that does something like the > > following: > > [...deleted specification...] > > 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? > > Me, too. I keep planning to write it and never seem to find the time. > -- > bc Bill Crews @ NetCor Data International > > ..!{seismo,gatech,ihnp4}!ut-sally!cyb-eng!bc (512) 835-2266 *** REPLACE THIS LINE WITH YOUR MESSAGE *** There is a unifdef program from Rand in Public domain going about that does this. It may be in 4.3 BSD -- Narayan Mohanram Phone: 415-962 7170 ARPANET wg3b20!narayan@lll-tis-b.ARPA Usenet ihnp4!{amdahl,pesnta}!wg3b20!narayan Mail The Wollongong Group 1129 San Antonio Road Palo Alto, CA 94303. USA ========================================================= || If you can't lick it, try some whipped cream || =========================================================