🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.c.moderated
Article #2008

[HELP] TOOL FOR REMOVING TOO MANY #ifdef's

#2008
From: ACS
Date: Fri, 16 Feb 1996 06:07
22 lines
1356 bytes
Hi,

I was given a huge "PORTABLE" C/C++ source code that's supposed to 
compile under DOS, Unix, Windows, etc.  I am currently adding some 
features while porting the source set to Windows95.  Of course I 
am having quite a bit of problems.

The task of adding new features and building a new Win95 port is 
IMMENSELY exacerbated because the source set has a huge number 
of #ifdef's for various OS/Version/features builds.
And frankly, I have no idea at all what some of these #ifdef's mean 
(Ex. #ifdef _PRACTICAL).

What I would like to do is "SELECTIVELY PREPROCESS THE SOURCE 
WITHOUT SUBSTITUTING MACROS". This way I figure I could reduce 
the size of the source set by 50%, and make it more intellible. 
I tried GNU CPP, but I could not find a way "NOT TO SUBSTITUTE MACROS".

Could anyone point me to a tool that does
   "SELECTIVELY PREPROCESS THE SOURCE WITHOUT SUBSTITUTING MACROS"

Thanks, Adrian
Technical Details
Message-ID: <4g16vd$mp0@solutions.solon.com>
Path: arc1-ca.pugleaf.net!solon.com!not-for-mail

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!solon.com!not-for-mail
From: acs@aracnet.com (ACS)
Newsgroups: comp.lang.c.moderated
Subject: [HELP] TOOL FOR REMOVING TOO MANY #ifdef's
Date: 16 Feb 1996 00:07:41 -0600
Organization: aracnet.com -- Portland's loudest electrons
Sender: clc@solutions.solon.com
Approved: clc@solutions.solon.com
Message-ID: <4g16vd$mp0@solutions.solon.com>
NNTP-Posting-Host: solutions.solon.com
X-Newsreader: WinVN 0.99.3