delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/10/13/19:16:35

Message-Id: <3.0.16.19971014011443.37b70e7c@hem1.passagen.se>
Date: Tue, 14 Oct 1997 01:14:46 -0400
To: djgpp AT delorie DOT com
From: Peter Palotas <blizzar AT hem1 DOT passagen DOT se>
Subject: CPP question.
Mime-Version: 1.0

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.

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.


-- Peter Palotas alias Blizzar -- blizzar AT hem1 DOT passagen DOT se --

*****************************************************
* A brief description of DJGPP:                     *
* NEVER BEFORE HAS SO FEW DONE SO MUCH FOR SO MANY! *
*****************************************************

- Raw text -


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