home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / unix / programm / 3859 < prev    next >
Encoding:
Text File  |  1992-07-22  |  1.7 KB  |  47 lines

  1. Xref: sparky comp.unix.programmer:3859 comp.unix.questions:9326 comp.lang.c:11506
  2. Newsgroups: comp.unix.programmer,comp.unix.questions,comp.lang.c
  3. Path: sparky!uunet!mcsun!sunic!ericom!eos.ericsson.se!etxmesa
  4. From: etxmesa@eos.ericsson.se (Michael Salmon)
  5. Subject: Re: #include file dependancies
  6. Message-ID: <1992Jul23.082922.5261@ericsson.se>
  7. Sender: news@ericsson.se
  8. Nntp-Posting-Host: eos6c02.ericsson.se
  9. Reply-To: etxmesa@eos.ericsson.se (Michael Salmon)
  10. Organization: Ericsson Telecom AB
  11. References: <AJG.92Jul22114544@sp1.ccd.harris.com> <1992Jul23.013154.22987@ccu1.aukuni.ac.nz>
  12. Distribution: comp
  13. Date: Thu, 23 Jul 1992 08:29:22 GMT
  14. Lines: 31
  15.  
  16. In article <1992Jul23.013154.22987@ccu1.aukuni.ac.nz>, 
  17. ecmtwhk@ccu1.aukuni.ac.nz (Thomas Koenig) writes:
  18. |> ajg@controls.ccd.harris.com (Arnold Goldberg) writes:
  19. |> 
  20. |> >We here have a very large source tree.
  21. |> 
  22. |> >What I'm looking for is a script or utility that will somehow tell
  23. |> >me which #include files are not actually needed for a source file.
  24. |> 
  25. |> Gcc (or rather, gcc's preprocessor) has the -M flag which will generate
  26. |> makefile dependencies for the specified source files; check out the manpage
  27. |> for your C compiler to see wether it also supports it.
  28. |> -- 
  29. |> Thomas Koenig, ecmtwhk@ccu1.aukuni.ac.nz, ib09@rz.uni-karlsruhe.de
  30. |> The joy of engineering is to find a straight line on a double logarithmic
  31. |> diagram.
  32.  
  33. If I interpret Arnold correctly he wants a program that checks which
  34. include files are used rather than those that are included, there is a
  35. subtle difference.
  36.  
  37. -- 
  38.  
  39. Michael Salmon
  40.  
  41. #include    <standard.disclaimer>
  42. #include    <witty.saying>
  43. #include    <fancy.pseudo.graphics>
  44.  
  45. Ericsson Telecom AB
  46. Stockholm
  47.