home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / hp / 9797 < prev    next >
Encoding:
Text File  |  1992-08-27  |  976 b   |  34 lines

  1. Newsgroups: comp.sys.hp
  2. Path: sparky!uunet!nntp1.radiomail.net!fernwood!rossix!mickan
  3. From: mickan@rossinc.com (Michael J. Andrew)
  4. Subject: cpp looking where it shouldn't 
  5. Message-ID: <1992Aug27.063347.9144@rossinc.com>
  6. Organization: Ross Systems, Inc.
  7. Date: Thu, 27 Aug 1992 06:33:47 GMT
  8. Lines: 24
  9.  
  10. I'm new to HP and this group.  I'm also sure this must have been asked
  11. before, but no luck on a search of our archived articles.
  12.  
  13. #if VMS
  14. #module vmsname
  15. #else
  16. #define NOTVMS
  17. #fi
  18.  
  19. The HP c89 compiler barfs on the "unknown" #module statement.
  20.  
  21. We're coming from a varied DEC environment, VMS and Ultrix.  The MIPS
  22. compilers don't get upset about this.
  23.  
  24. I don't know what ANSI has to say, but it seems to me that any complaints
  25. by the preprocessor in the "false" part of an #if or #ifdef is
  26. very antisocial.
  27.  
  28. Comments?
  29. -- 
  30. --------------------------------------------------------------
  31. Michael J. Andrew    Ross Systems Inc.    (415) 593 2500
  32. ..!fernwood!rossix!mick
  33. mick@rossinc.com
  34.