🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #41570

cpp with -C option

#41570
From: Patrick Vestjens
Date: Tue, 12 Mar 1996 00:00
16 lines
1087 bytes
Hello there,

I'm using the GNU C preprocessor (cpp) to preprocess Objective-C
source files. Since I want comments to be included in the result as
well, I use the -C switch. However, when I call the preprocessor
directly (with the cpp command), it does not expand the imported (#import)
files in contrast with the included (#include) files which are being
expanded.

If I use gcc with the -E switch, both the imported and included file are
being expanded. Can anybody tell me what the cause of this difference
in behavior is?

Thanks in advance,

regards, Patrick.
Technical Details
Message-ID: <1996Mar12.092517.2159@ms.philips.nl>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,f375d1414f543262,start
X-Google-Attributes: gid11318c,public
X-Google-Thread: 1111a3,f375d1414f543262,start
X-Google-Attributes: gid1111a3,public
From: Pvestjen@ms.philips.nl (Patrick Vestjens)
Subject: cpp with -C option
Date: 1996/03/12
Message-ID: <1996Mar12.092517.2159@ms.philips.nl>
X-Deja-AN: 142366267
sender: news@ms.philips.nl
organization: Philips Medical Systems, Best
newsgroups: gnu.gcc.help,comp.lang.objective-c