[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Expanding C-code ifdef/ifndefs-endif-groups only.

From: Per Nordlöw
Subject: Expanding C-code ifdef/ifndefs-endif-groups only.
Date: Mon, 30 May 2005 16:49:15 +0200
User-agent: Pan/0.14.2 (This is not a psychotic episode. It's a cleansing moment of clarity.)

We have some bad C code that we need to straighten out by forking
various files into target-specific files by running the code through a
preprocessor that expands only certain ifdefs/ifndefs-endif-groups that
are related to specific variables such VXWORKS, etc. We do not want the
preprocessing to expand normal macros.

How can this be done, preferably in Emacs, or in some other GNU tool?

I have glanced at the manual page for cpp but it seems to expand
everything by default. Can we flag cpp to expand certain
ifdef/ifndefs-endif-groups only?

Thanks in advance,
Per Nordlöw

reply via email to

[Prev in Thread] Current Thread [Next in Thread]