Article View: comp.lang.c.moderated
Article #2021Re: [HELP] TOOL FOR REMOVING TOO MANY #ifdef's
From: Dan Pop
Date: Fri, 16 Feb 1996 15:23
Date: Fri, 16 Feb 1996 15:23
22 lines
1290 bytes
1290 bytes
In <4g16vd$mp0@solutions.solon.com> acs@aracnet.com (ACS) writes: >Could anyone point me to a tool that does > "SELECTIVELY PREPROCESS THE SOURCE WITHOUT SUBSTITUTING MACROS" The name of the tool is the C preprocessor. Remove the definitions of the macros and they won't be substituted. The practical way to do this is to create a new header, nomacros.h and to #undef all the macros (or only those you don't want to be substituted) in that header. Include this header after all the other headers have been included. 'grep #define *.h' or its equivalent for your platform will give you the list of all the macros defined in the other headers. Dan -- Dan Pop CERN, CN Division Email: danpop@mail.cern.ch Mail: CERN - PPE, Bat. 31 R-004, CH-1211 Geneve 23, Switzerland
Technical Details
Message-ID:
<4g27h7$q64@solutions.solon.com>Path:
arc1-ca.pugleaf.net!solon.com!not-for-mailReferences:
<4g16vd$mp0@solutions.solon.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!solon.com!not-for-mail From: danpop@mail.cern.ch (Dan Pop) Newsgroups: comp.lang.c.moderated Subject: Re: [HELP] TOOL FOR REMOVING TOO MANY #ifdef's Date: 16 Feb 1996 09:23:19 -0600 Organization: CERN European Lab for Particle Physics Sender: clc@solutions.solon.com Approved: clc@solutions.solon.com Message-ID: <4g27h7$q64@solutions.solon.com> References: <4g16vd$mp0@solutions.solon.com> NNTP-Posting-Host: solutions.solon.com X-Newsreader: NN version 6.5.0 #7 (NOV)