Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ukma!husc6!endor!siegel From: siegel@endor.harvard.edu (Rich Siegel) Newsgroups: comp.sys.mac.programmer Subject: Re: Can LSC call a Pascal function pointer? Keywords: LSC,Pascal functions Message-ID: <1766@husc6.harvard.edu> Date: 6 May 89 14:09:48 GMT References: <1491@internal.Apple.COM> Sender: news@husc6.harvard.edu Reply-To: siegel@endor.UUCP (Rich Siegel) Organization: Symantec/THINK Technologies, Bedford, MA Lines: 31 In article <1491@internal.Apple.COM> rpd@Apple.COM (Rick Daley) writes: >OK, everyone knows that you can create a function that follows Pascal >calling conventions by using the "pascal" keyword. But, what if you >want to declare a pointer to one of these functions and then call it? >I'm using LSC 3.0 and I can't figure out how to do it. I even resorted >to looking through the manual. There's a family of routines: pascal void CallPascal() pascal char CallPascalB() pascal int CallPascalW() pascal long CallPascalL() These routines take as their LAST argument a pointer to the Pascal function to be called. (I believe they are documented, but I don't have my manuals in front of my, so I'm not sure where...) --Rich ~~~~~~~~~~~~~~~ Rich Siegel Staff Software Developer Symantec Corporation, Language Products Group Internet: siegel@endor.harvard.edu UUCP: ..harvard!endor!siegel "She told me to make myself comfortable, so I pulled down my pants and sat in the pudding." -Emo Phillips ~~~~~~~~~~~~~~~