Path: utzoo!attcan!uunet!wuarchive!julius.cs.uiuc.edu!rpi!uupsi!sunic!dkuug!rcbal!poe From: poe@kos.rci.dk (Poul Oestergaard) Newsgroups: comp.lang.c Subject: Cpp preprocessor Keywords: cpp, ifdef Message-ID: <1044@kos.rci.dk> Date: 11 Oct 90 12:38:38 GMT Distribution: comp Organization: RC International, Copenhagen, Denmark Lines: 16 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. Regards Poul Oestergaard RC International Denmark Mail: poe@rci.dk