From: Nate Eldredge Newsgroups: comp.os.msdos.djgpp Subject: Re: CPP question. Date: 23 Oct 1997 07:06:14 GMT Organization: None provided Lines: 18 Message-ID: <62mt16$rc0$2g@195.26.68.19> NNTP-Posting-Host: 195.26.68.19 Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Dj-Gateway: from mailing list djgpp AT delorie DOT com Precedence: bulk To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk 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