🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.programmer
Article #89

Re: #include file dependancies

#89
From: Michael Salmon
Date: Thu, 23 Jul 1992 08:29
31 lines
1655 bytes
In article <1992Jul23.013154.22987@ccu1.aukuni.ac.nz>, 
ecmtwhk@ccu1.aukuni.ac.nz (Thomas Koenig) writes:
|> ajg@controls.ccd.harris.com (Arnold Goldberg) writes:
|> 
|> >We here have a very large source tree.
|> 
|> >What I'm looking for is a script or utility that will somehow tell
|> >me which #include files are not actually needed for a source file.
|> 
|> Gcc (or rather, gcc's preprocessor) has the -M flag which will generate
|> makefile dependencies for the specified source files; check out the manpage
|> for your C compiler to see wether it also supports it.
|> -- 
|> Thomas Koenig, ecmtwhk@ccu1.aukuni.ac.nz, ib09@rz.uni-karlsruhe.de
|> The joy of engineering is to find a straight line on a double logarithmic
|> diagram.

If I interpret Arnold correctly he wants a program that checks which
include files are used rather than those that are included, there is a
subtle difference.

-- 

Michael Salmon

#include	<standard.disclaimer>
#include	<witty.saying>
#include	<fancy.pseudo.graphics>

Ericsson Telecom AB
Stockholm
Technical Details
Message-ID: <1992Jul23.082922.5261@ericsson.se>
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!sunic!ericom!eos.ericsson.se!etxmesa
References: <AJG.92Jul22114544@sp1.ccd.harris.com> <1992Jul23.013154.22987@ccu1.aukuni.ac.nz>

Show Full Headers
Complete Article Headers
Newsgroups: comp.unix.programmer,comp.unix.questions,comp.lang.c
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!sunic!ericom!eos.ericsson.se!etxmesa
From: etxmesa@eos.ericsson.se (Michael Salmon)
Subject: Re: #include file dependancies
Message-ID: <1992Jul23.082922.5261@ericsson.se>
Sender: news@ericsson.se
Nntp-Posting-Host: eos6c02.ericsson.se
Reply-To: etxmesa@eos.ericsson.se (Michael Salmon)
Organization: Ericsson Telecom AB
References: <AJG.92Jul22114544@sp1.ccd.harris.com> <1992Jul23.013154.22987@ccu1.aukuni.ac.nz>
Distribution: comp
Date: Thu, 23 Jul 1992 08:29:22 GMT
Lines: 31