home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!iWarp.intel.com|eff!world!ksr!jfw
- From: jfw@ksr.com (John F. Woods)
- Newsgroups: comp.std.c
- Subject: Re: ANSI Prototype Header Files for C
- Message-ID: <14331@ksr.com>
- Date: 31 Jul 92 12:57:03 EDT
- References: <1992Jul30.075518.5178@neptune.inf.ethz.ch>
- Sender: news@ksr.com
- Lines: 17
-
- kaufmann@apsst1.inf.ethz.ch (Helmut Kaufmann) writes:
- >Where do I get the above header files? Thank you for any pointer!
-
- With your ANSI C compilation system.
-
- You can't just glue ANSI header files onto an existing implementation, because
- a few of the things that must be defined in the header files require some
- cooperation from the "raw" C compiler. For example, there is no portable way
- to define the "offsetof()" macro, so you can't write it without knowing how
- the compiler works--and it might even have to be a compiler built-in, i.e.
-
- #define offsetof(x,y) __offsetof(x,y)
-
- If you're just interested in seeing some existing practice, you can FTP the GNU
- C library (prep.ai.mit.edu), or the latest NET2 BSD sources (ftp.uu.net).
- (There are, no doubt, places in Europe to ftp both of these, but I don't know
- them offhand.)
-