I need to work on some code with a terrifying number of ifdefs. According
to the comp.lang.c FAQ, the programs scpp, unifdef, and rmifdef can
selectively expand ifdef's and evaluate macro definitions without expanding
the macros in code. I've found some ancient source for scpp but it's
unmaintained and doesn't build with a modern flex and yacc. unifdef appears
not to parse macro values and expressions and doesn't do anything with
regular ifs, and much of my code uses ifs which depend on some expression
derived from defined macros.
Are there any other preprocessors that can do this kind of thing? I can't
see anything in the Gnu cpp man page that suggests that it can do this.
--
Kenneth Porter
http://www.sewingwitch.com/ken/