home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / next / programm / 5724 < prev    next >
Encoding:
Text File  |  1992-08-20  |  1.4 KB  |  33 lines

  1. Newsgroups: comp.sys.next.programmer
  2. Path: sparky!uunet!elroy.jpl.nasa.gov!nntp-server.caltech.edu!news
  3. From: ernest@pundit.cithep.caltech.edu (Ernest Prabhakar)
  4. Subject: Can C preprocessor handle #include "fooa" "foob"
  5. Message-ID: <1992Aug20.235325.18290@cco.caltech.edu>
  6. Sender: news@cco.caltech.edu
  7. Nntp-Posting-Host: pundit.cithep.caltech.edu
  8. Reply-To: ernest@pundit.cithep.caltech.edu (Ernest Prabhakar)
  9. Organization: California Institute of Technology, Pasadena
  10. Date: Thu, 20 Aug 1992 23:53:25 GMT
  11. Lines: 20
  12.  
  13. There is a funky trick which works under the 3.0 NeXT preprocessor, but not  
  14. under GNU 2.1 or 2.2.  It is:
  15. #include "string1" "string2"
  16. which resolves to:
  17. #inclue "string1string2"
  18. Which is then referenced for the include file.
  19.  
  20. Now, I'm not savvy enough to understand exactly what the ANSI C preprocessor is  
  21. supposed to guarantee.  Does stringification take place before includes?  Then  
  22. GNU is broken.  Is it the other way around?  Then NeXT's preprocessor supplies  
  23. (and thus NeXT include files rely upon) non-standard behavior.  Could someone
  24. perhaps shed some light on this for me?
  25.  
  26. - Ernie P.
  27. --
  28. Ernest N. Prabhakar                  Caltech High Energy Physics
  29. Member, League for Programming Freedom (league@prep.ai.mit.edu)
  30. CaJUN President        NeXTMail:ernest@pundit.cithep.caltech.edu
  31. "...and ourselves, your servants for Jesus sake." - II Cor 4:5b
  32. #import <std/disclaimer.h>
  33.