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