Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utcs!mnetor!seismo!mcvax!ukc!dcl-cs!strath-cs!paisley!jimg From: jimg@paisley.UUCP Newsgroups: net.sources Subject: Re: ifdef filter Message-ID: <172@paisley.ac.uk> Date: Mon, 21-Jul-86 06:52:16 EDT Article-I.D.: paisley.172 Posted: Mon Jul 21 06:52:16 1986 Date-Received: Tue, 22-Jul-86 09:04:27 EDT References: <323@enmasse.UUCP> <924@cyb-eng.UUCP> Sender: jimg@paisley.ac.uk Reply-To: jimg@cs.paisley.ac.uk (Jim Gavin) Organization: Paisley College of Technology Scotland. Lines: 12 In article <924@cyb-eng.UUCP> bc@cyb-eng.UUCP writes: >> 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. Can't you just run it through the C pre-processor?