Cpp preprocessor

Dan Bernstein brnstnd at kramden.acf.nyu.edu
Fri Oct 12 22:34:27 AEST 1990


In article <1044 at kos.rci.dk> poe at 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 <source files>
> 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



More information about the Comp.lang.c mailing list