Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!elroy.jpl.nasa.gov!ncar!gatech!mcnc!rti!mozart!walker From: walker@unx.sas.com (Doug Walker) Newsgroups: comp.sys.amiga.tech Subject: Re: Lattice 5.10 #pragma limit Message-ID: <1990Nov06.182116.17953@unx.sas.com> Date: 6 Nov 90 18:21:16 GMT References: <1364.AA1364@cuenews> Distribution: na Organization: SAS Institute Inc. Lines: 32 In article <1364.AA1364@cuenews> andrew@cuenews.UUCP (Andrew Folkins) writes: >According to the docs (Preface pg. xv), the limit on parameters to a >#pragma call has been raised to 14, "allowing ALL Amiga library functions >to be called with parameters in registers." Except that when I used >the #pragma for NewModifyProp(), lc2 gurus (tb reports foo.0000000b). >Take out the pragma, and it compiles fine. Has anyone else run into this? > > NewModifyProp(gadget, window, NULL, epi->pi.Flags, > 0, epi->pi.VertPot, 0, epi->pi.VertBody, 1); This is a bug in the 5.10 version of the compiler. The compiler will crash if fed an ODD CONSTANT to a #pragma routine taking more than 8 parameters. You can get around it by changing the code to > { int tmpint = 1; > NewModifyProp(gadget, window, NULL, epi->pi.Flags, > 0, epi->pi.VertPot, 0, epi->pi.VertBody, tmpint); > } We apologize for the bug and will fix it in the next maintenance release. (Please feel free to call SAS/C tech support at (919)677-8009 to report this kind of problem - that's what they are there for. ) ***** =*|_o_o|\\=====Doug Walker, Software Distiller====== BBS: (919)460-7430 = *|. o.| || 1200/2400/9600 Dual | o |// For all you do, this bug's for you! ====== usenet: ...mcnc!rti!sas!walker plink: dwalker bix: djwalker