Cpp preprocessor

Poul Oestergaard poe at kos.rci.dk
Thu Oct 11 22:38:38 AEST 1990


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.

Regards
Poul Oestergaard
RC International
Denmark

Mail: poe at rci.dk



More information about the Comp.lang.c mailing list