Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!math.lsa.umich.edu!math.lsa.umich.edu!emv From: emv@math.lsa.umich.edu (Edward Vielmetti) Newsgroups: comp.lang.c Subject: Re: Cpp preprocessor Message-ID: Date: 13 Oct 90 00:22:22 GMT References: <1044@kos.rci.dk> <10169:Oct1212:34:2790@kramden.acf.nyu.edu> Sender: usenet@math.lsa.umich.edu Organization: University of Michigan Math Dept., Ann Arbor MI. Lines: 25 In-Reply-To: brnstnd@kramden.acf.nyu.edu's message of 12 Oct 90 12:34:27 GMT In article <10169:Oct1212:34:2790@kramden.acf.nyu.edu> brnstnd@kramden.acf.nyu.edu (Dan Bernstein) writes: In article <1044@kos.rci.dk> poe@kos.rci.dk (Poul Oestergaard) writes: > Does anyone have c sources, or a script, for a cpp preprocessor (cppp) > which can remove "ifdef"'s (and "if defined") and the code surrounded > by "ifdef" and "else" or "endif"? E. g. the command > cppp -RKERNEL > should remove all "ifdef/ifndef KERNEL"'s and source selected by > "ifdef/ifndef KERNEL". Output should appear on standard output. That's what unifdef does. I don't know unifdef's pedigree. If it's BSD only, the sources might have been freed. The BSD 4.3 Reno annoucement from comp.bugs.ucb-fixes on 06 July 1990 identifies portions of the 4.3 Reno distribution which are freely redistributable under the standard BSD "freed files" copyright. unifdef(1) is one of the files listed, with the credit going to Dave Yost. I don't know if unifdef was broken out in the earlier release, and as far as I know there was not been a "freed files" release of the Reno code. --Ed Edward Vielmetti, U of Michigan math dept moderator, comp.archives