Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!yale!cmcl2!kramden.acf.nyu.edu!brnstnd From: brnstnd@kramden.acf.nyu.edu (Dan Bernstein) Newsgroups: comp.lang.c Subject: Re: Cpp preprocessor Message-ID: <10169:Oct1212:34:2790@kramden.acf.nyu.edu> Date: 12 Oct 90 12:34:27 GMT References: <1044@kos.rci.dk> Organization: IR Lines: 12 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. ---Dan