home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / unix / programm / 3871 < prev    next >
Encoding:
Text File  |  1992-07-23  |  950 b   |  42 lines

  1. Path: sparky!uunet!sun-barr!news2me.ebay.sun.com!jethro.Corp.Sun.COM!ueshiba!kron
  2. From: kron@ueshiba.Corp.Sun.COM (Kenneth Kron)
  3. Newsgroups: comp.unix.programmer
  4. Subject: Re: #include file dependancies
  5. Date: 23 Jul 1992 18:22:09 GMT
  6. Organization: Sun Microsystems, Inc.
  7. Lines: 28
  8. Distribution: world
  9. Message-ID: <l6tu6hINN7ag@jethro.Corp.Sun.COM>
  10. References: <AJG.92Jul23132529@sp1.ccd.harris.com>
  11. Reply-To: kron@ueshiba.Corp.Sun.COM
  12. NNTP-Posting-Host: ueshiba.corp.sun.com
  13.  
  14. How about the -E option to cc
  15. ueshiba% cc -E test.c | grep "# 1"
  16. # 1 "test.c" 
  17. # 1 "./used.h" 1
  18. ueshiba% more *
  19. ::::::::::::::
  20. notused.h
  21. ::::::::::::::
  22. #define NOTUSED
  23. ::::::::::::::
  24. test.c
  25. ::::::::::::::
  26. #ifdef DONT
  27. #include "notused.h"
  28. #endif
  29. #include "used.h"
  30. ::::::::::::::
  31. used.h
  32. ::::::::::::::
  33. #define USED
  34.  
  35. ---
  36. kron@mentor.sun.com
  37. Stolen sig of the month ---
  38. 'Whatever you can do, or dream you can, begin it.  Boldness
  39. has genius, power and magic in it.'  -  Goethe
  40.  
  41.  
  42.