[comp.sys.mac.hypercard] HyperCard XCMDs in MPW C.

grossber@paul.rutgers.edu (grossberg) (03/14/89)

     I need to create an XCMD out of an MPW C program which uses global 
variables.  I have seen this done in LightSpeed C, but never in MPW C.  The 
problem is that the first line of code in an XCMD must be executable, and 
using global variables causes this not to be the case.  The solution in 
LightSpeed C is to use the asm directive,  and the LightSpeed C 
routines called RememberA0(), SetUpA4(), and RestoreA4().  Does anybody know
 of the solution to this problem within MPW C?

					Thanks, Dave Grossberg