Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!asuvax!stjhmc!p88.f15.n300.z1.fidonet.org!Lawson.English From: Lawson.English@p88.f15.n300.z1.fidonet.org (Lawson English) Newsgroups: comp.sys.mac.programmer Subject: Using THINK C from THINK Pascal Message-ID: <4114.27D25153@stjhmc.fidonet.org> Date: 3 Mar 91 06:10:37 GMT Sender: ufgate@stjhmc.fidonet.org (newsout1.26) Organization: FidoNet node 1:300/15.88 - Tucson Apple Core, Tucson AZ Lines: 22 David Fry writes in a message to All DF> pascal void MyFunc(Ptr aPtr, short aShort, unsigned char aByte); DF> PROCEDURE MyFunc(aPtr: Ptr; aShort: INTEGER; aByte: BOOLEAN); DF> Should I define a type of PACKED ARRAY [1..1] of CHAR, or some DF> such? As C has the more versatile way of defining parameters, why not redefine your C function to interface properly with the Pascal, rather then try to force Pascal to interface properly with the C? As you have the source to both, this shouldn't be a problem. If it is, then you might define a glue routine in C that calls your routine after making all necessary adjustments... Lawson -- Uucp: ...{gatech,ames,rutgers}!ncar!asuvax!stjhmc!300!15.88!Lawson.English Internet: Lawson.English@p88.f15.n300.z1.fidonet.org