public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Preprocess, but do not expand macros?
@ 2002-07-02 17:12 Larry Riedel
  2002-07-02 17:45 ` Gokhan Kisacikoglu
  0 siblings, 1 reply; 5+ messages in thread
From: Larry Riedel @ 2002-07-02 17:12 UTC (permalink / raw)
  To: gcc-help


Is there a simple way for me to tell gcc/cpp to run
the preprocessor, but do nothing more than remove the
code which would not be present after if/ifdef/ifndef?
I can do "gcc -E" but that expands macros, puts line
numbers in, etc.


Larry

^ permalink raw reply	[flat|nested] 5+ messages in thread
* RE: Preprocess, but do not expand macros?
@ 2002-07-03 10:36 landauer
  2002-07-03 13:59 ` Larry Riedel
  0 siblings, 1 reply; 5+ messages in thread
From: landauer @ 2002-07-03 10:36 UTC (permalink / raw)
  To: gcc-help; +Cc: larryr

> Is there a simple way for me to tell gcc/cpp to run
> the preprocessor, but do nothing more than remove the
> code which would not be present after if/ifdef/ifndef?

Not gcc nor cpp itself, but there is a tool out there in
some OS's that is called "unifdef".  It might be close
enough for your purposes.  You might want to search the
web to see whether it's available.

 -- Doug L.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2002-07-03 20:59 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-07-02 17:12 Preprocess, but do not expand macros? Larry Riedel
2002-07-02 17:45 ` Gokhan Kisacikoglu
2002-07-02 18:43   ` Larry Riedel
2002-07-03 10:36 landauer
2002-07-03 13:59 ` Larry Riedel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).