home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / std / c / 2400 < prev    next >
Encoding:
Internet Message Format  |  1992-07-31  |  1.1 KB

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