[comp.sys.mac.programmer] Help: Calling Pascal functions from MPW C

dierks@ndmath.UUCP (Tim Dierks) (03/19/89)

I am writing an INIT that will patch ModalDialog and replace the filterProc
passed by the original program with one of my own design.  However, the
first thing I want to do in my filterProc is call the original filterProc.
Although my final version will be written in MPW assembler, I am working on
the algorithms, etc, in MPW C.  However, I can't figure out how to call a Pascal
function I have a pointer to (the filterProc) from MPW C.  I need to be able to
pass the 3 parameters that go to a filterProc and collect the Boolean [really
an unsigned char.]  In LSC I'd use CallPascalB(theDlogPtr,theEventPtr,theItem,
theProc).  What's the equivalent for MPW C?

Tim Dierks
dierks@darwin.cc.nd.edu
dierks@ndmath.cc.nd.edu