[comp.sys.mac.programmer] Using Capps' with MPW C

amanda@lts.UUCP (Amanda Walker) (10/27/88)

Well, I know of no way to convert a THINK C library to an MPW one, but there
is one approach that should work pretty well: code resources.

If you use THINK C to build a code resource (similar to a package, actually)
whose entry point pops a selector off of the stack, replaces the return
address, and jumps to the appropriate routine, then you should be able to
write some glue routines in MPW C that call it, thus giving you the best
of both worlds.  I've actually gotten as far as building the code resource
(inline assembly can be fun), but haven't gotten around to writing the MPW
C glue routines (I got distracted by Real Work :-)).

Note that this technique is not for the meek...

-- 
Amanda Walker
InterCon Corporation, 11732 Bowman Green Drive, Reston, VA 22090

...!uunet!lts!amanda / lts!amanda@uunet.uu.net