home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / std / c / 3271 < prev    next >
Encoding:
Text File  |  1992-12-24  |  1.4 KB  |  28 lines

  1. Newsgroups: comp.std.c
  2. Path: sparky!uunet!haven.umd.edu!decuac!pa.dec.com!e2big.mko.dec.com!jrdzzz.jrd.dec.com!jit533.jit.dec.com!diamond
  3. From: diamond@jit533.jit.dec.com (Norman Diamond)
  4. Subject: Re: Maximum depth of #if preprocessing directives
  5. Message-ID: <BzsK12.5Ky@jrd.dec.com>
  6. Sender: usenet@jrd.dec.com (USENET News System)
  7. Nntp-Posting-Host: jit533.jit.dec.com
  8. Reply-To: diamond@jit.dec.com (Norman Diamond)
  9. Organization: Digital Equipment Corporation Japan , Tokyo
  10. References: <JET.92Dec24133237@boxer.nas.nasa.gov>
  11. Date: Fri, 25 Dec 1992 01:27:02 GMT
  12. Lines: 14
  13.  
  14. In article <JET.92Dec24133237@boxer.nas.nasa.gov> jet@boxer.nas.nasa.gov (J. Eric Townsend) writes:
  15. >I looked in 2.2.4.1, but I don't recognize any of the translation
  16. >limits as applying to the maximum depth of #if directives.  Could
  17. >someone tell me where I should look, or if such a limit exists?
  18.  
  19. It looks like no such limit exists, so an implementation could set it at 1.
  20. I'm not sure if an implementation could set it at 0.  Of course, any
  21. reasonable implementation could get a limit of 32767 by using a few ints
  22. (if the implementation is itself coded in C :-) so I think there "shouldn't"
  23. be any practical problem.  But "shouldn't" != "can't", sigh....
  24. --
  25. Norman Diamond       diamond@jit081.enet.dec.com
  26. If this were the company's opinion, I wouldn't be allowed to post it.
  27. "It's been a lovely recession."
  28.