Path: utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!wuarchive!udel!rochester!uhura.cc.rochester.edu!gest_ss From: gest_ss@uhura.cc.rochester.edu (Gavin Stark) Newsgroups: comp.lang.c Subject: #DEFINEs and how to process them out Summary: How to parse out whats between ifdefs Keywords: DEFINE Message-ID: <11085@ur-cc.UUCP> Date: 13 Dec 90 05:04:07 GMT Organization: University of Rochester - Rochester, New York Lines: 20 Question: How do I get the following effect: I want a program to scan through my C source and process the #ifdef statements. Like the following #define TRUE #ifdef TRUE int a; #endif should give me just: int a; The program I have has LOTS of ifdefs and other such constructions. Is there a way to parse out just the ones that actually get compiled? Thanks for any suggestions. Gavin Stark gest_ss@uhura.cc.rochester.edu