Path: utzoo!attcan!uunet!sdrc!scjones From: scjones@sdrc.UUCP (Larry Jones) Newsgroups: comp.std.c Subject: Re: "Broken" compilers Message-ID: <1374@sdrc.UUCP> Date: 1 May 90 21:20:48 GMT References: <1990Apr25.165602.974@craycos.com> <1626@tkou02.enet.dec.com> Organization: SDRC, Cincinnati Lines: 27 In article <1626@tkou02.enet.dec.com>, diamond@tkou02.enet.dec.com (diamond@tkovoa) writes: > In article <1990Apr26.125851.20728@contact.uucp> ross@contact.UUCP (Ross Ridge) writes: > >The macro a expands to 5 517 094 707 031 349 characters. > > Yeah, I thought that was greater than 509. I tried to run a program to check > whether 5 517 094 707 031 349 was greater than 509, but got an error message. > Actually the logical line is a bit longer than that, because there are a few > more characters on the same source line outside of the macro invocation. > > To repeat Peter Klausler's statement: > < - does not exceed (or approach) any of the limits in 2.2.4.1 > > give or take a limit, eh? If you check the phases of translation, however, logical lines are a well-defined concept that occur BEFORE macro expansion. Since the preprocessor grammar is token based, the result of preprocessing is a stream of tokens, not logical lines, so the size of the result is not subject to the logical line length limit! ---- Larry Jones UUCP: uunet!sdrc!scjones SDRC scjones@SDRC.UU.NET 2000 Eastman Dr. BIX: ltl Milford, OH 45150-2789 AT&T: (513) 576-2070 "You know how Einstein got bad grades as a kid? Well MINE are even WORSE!" -Calvin