Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!apple!AppleLink.Apple.Com!Greg From: Greg@AppleLink.Apple.Com (Greggy) Newsgroups: comp.sys.mac.programmer Subject: Re: MPW Pascal 3.0 GetGrayRgn INLINE Ques. Message-ID: <2745@internal.Apple.COM> Date: 10 Jul 89 22:49:46 GMT References: <4313@hacgate.scg.hac.com> Sender: usenet@Apple.COM Organization: Apple Computer, Inc. Lines: 39 In article <4313@hacgate.scg.hac.com> djnowak@luna.dpl.scg.hac.com (David Nowak) writes: > ... > [ David complains about an error when he includes > Windows.p in his own unit ] > ... > ### PASCAL - Error 177 Unsatisfied forward declaration for Function > GETGRAYRGN > ... > It seems that the Windows.p that the GetGrayRgn function has > no corresponding INLINE address declaration: > > FUNCTION GetGrayRgn: RgnHandle; > > Does anyone know this value so I can proceed with compiling my Globals > unit? > And why did Apple leave out this address declaration? > > Thanks in advance. Apple didn't leave out any declarations. GetGrayRgn is implemented with glue, not INLINEs, thus the code is supplied at link time from the Interface.o file. When you include Windows.p, GetGrayRgn ends up having a declaration in the INTERFACE, but no code in the IMPLEMENTATION section of your unit. Since you have an IMPLEMENTATION section, Pascal complains when it can't find the code for the declared function. > Dave Nowak > djnowak@luna.dpl.scg.hac.com ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + Greg Marriott + AppleLink: Greg + + Just Some Guy + + + "My phone is always busy" + Internet: Greg@AppleLink.Apple.Com + ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + Apple Computer, Inc. + + 20525 Mariani Ave, MS-46z, Cupertino, CA 95014 + + (408)974-busy + ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++