Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!bbn!apple!rpd From: rpd@Apple.COM (Rick Daley) Newsgroups: comp.sys.mac.programmer Subject: Can LSC call a Pascal function pointer? Keywords: LSC,Pascal functions Message-ID: <1491@internal.Apple.COM> Date: 21 Apr 89 01:17:58 GMT Organization: Apple Computer Inc., Cupertino, CA Lines: 16 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. In MPW, I can do this: typedef pascal long (*routinePtr)(OSErr err, ushort ignoreThis); But in LSC, I can't get the compiler to accept either the "pascal" keyword or a parameter list in the typedef. The only solution I know of is to call the routine via inline assembler. What's a poor programmer to do? Rick Daley rpd@apple.com