Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!cmcl2!yale!think.com!snorkelwacker!usc!wuarchive!udel!haven!decuac!shlump.nac.dec.com!meridn.enet.dec.com!barrett From: barrett@meridn.enet.dec.com (Keith Barrett) Newsgroups: comp.sys.amiga Subject: SAS/Lattice C Keywords: define Message-ID: <14921@shlump.nac.dec.com> Date: 25 Aug 90 13:31:38 GMT Sender: newsdaemon@shlump.nac.dec.com Organization: Digital Equipment Corporation Lines: 18 Well, I looked into the Lattice manual; it appears that the Lattice users guide states on page G37 that the maximum length of the SUBSTITUTION text for a #define cannot exceed 512 bytes, so I can see how a long #define might blow up. It would also be easy to forget that the expanded string could be longer than the actual #define statement and cause a "hidden" problem. I can also see how exceeding the compiler buffer limit might trash memory and GURU, but I agree that very poor and should have been trapped for instead - there's no excuse for a crash. See, I can do research. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Keith G. Barrett - Software Specialist Internet: barrett@meridn.enet.dec.com Digital Equipment Corp. "DEC has it now" UUCP: decwrl!meridn.enet!barrett // "Wait'll they get a load of me" - Joker \X/ "The Amiga is really a picoVAX" "You won't get it!" - the Prisoner ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~