delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/10/13/22:12:33

Date: Mon, 13 Oct 1997 19:10:47 -0700 (PDT)
Message-Id: <199710140210.TAA29016@adit.ap.net>
Mime-Version: 1.0
To: Peter Palotas <blizzar AT hem1 DOT passagen DOT se>, djgpp AT delorie DOT com
From: Nate Eldredge <eldredge AT ap DOT net>
Subject: Re: CPP question.

At 01:14  10/14/1997 -0400, Peter Palotas wrote:
>Is there some way to make CPP (the macro preprocessor) not include files
>from included files? i.e. if there's a line #include "file1.h" in the file
>being preprocessed and file1.h contains a line #include "file2.h", I want
>the output file only to include file1.h and keeping the '#include
>"file2.h"' line.
No, I don't think so.
>I need this, because I want to automatically create a headerfile from
>several others, but I don't want to include the files that they include.
>Maybe there is a better way (I'm sure there is) to do this, than using CPP,
>but I couldn't think of any.
You could use `cat' somehow?

Nate Eldredge
eldredge AT ap DOT net



- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019