home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!sun-barr!news2me.ebay.sun.com!jethro.Corp.Sun.COM!ueshiba!kron
- From: kron@ueshiba.Corp.Sun.COM (Kenneth Kron)
- Newsgroups: comp.unix.programmer
- Subject: Re: #include file dependancies
- Date: 23 Jul 1992 18:22:09 GMT
- Organization: Sun Microsystems, Inc.
- Lines: 28
- Distribution: world
- Message-ID: <l6tu6hINN7ag@jethro.Corp.Sun.COM>
- References: <AJG.92Jul23132529@sp1.ccd.harris.com>
- Reply-To: kron@ueshiba.Corp.Sun.COM
- NNTP-Posting-Host: ueshiba.corp.sun.com
-
- How about the -E option to cc
- ueshiba% cc -E test.c | grep "# 1"
- # 1 "test.c"
- # 1 "./used.h" 1
- ueshiba% more *
- ::::::::::::::
- notused.h
- ::::::::::::::
- #define NOTUSED
- ::::::::::::::
- test.c
- ::::::::::::::
- #ifdef DONT
- #include "notused.h"
- #endif
- #include "used.h"
- ::::::::::::::
- used.h
- ::::::::::::::
- #define USED
-
- ---
- kron@mentor.sun.com
- Stolen sig of the month ---
- 'Whatever you can do, or dream you can, begin it. Boldness
- has genius, power and magic in it.' - Goethe
-
-
-