By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,686 Members | 2,770 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,686 IT Pros & Developers. It's quick & easy.

scpp and expanding ifdef's

P: n/a
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/
Nov 13 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
On Sat, 11 Oct 2003 15:14:58 -0500, Kenneth Porter
<sh*************@sewingwitch.com> wrote:
sorry, i know of no tools other than those you've mentioned. perhaps
you would be satisfied with an editor that can hide some sections of
code -- if so perhaps you can train (x)emacs to do it.


I'd read somewhere that Coderight can do it.


Probably, Slickedit as well.

--
Al Balmer
Balmer Consulting
re************************@att.net
Nov 13 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.