[comp.sys.mac.programmer] MPW C and THINK C

carl@tardis.Tymnet.COM (Carl Baltrunas) (10/30/90)

Can anyone provide some useful pointers about differences between MPW C and
THINK C.  I realize versions are important, but the kind of pointers I'm
looking for may NOT be that specific.  I have some sample code written for
MPW C version 3.1 and I'd like to convert it (or parts of it) into THINK C 4.0
so I can tweak parts of it and gain a more thorough understanding of the Mac
environment [programmers perspective].

I have a few of my own programs that I'd like to spruce up with various window
gadgets, but don't have any THINK C examples to work from.

My first stumbling blocks include getting around the
  "illegal function prototype" messages from what appear to be reasonable
functions.

Am I running into ANSI/non-ANSI problems?  Can someone clue me in on what
things I need to change in the definitions/code to compile MPW code under
THINK.  (I don't want a dissertation on whether it's worthwhile, just what
things need attention).

In another vein, anyone have some spiffy (or not so spiffy) THINK C code
they want to share with me so I can get going...  My first couple of projects
are to speed up my digitizer code to use off-screen bitmaps, and to make a
desk-accessory to do date calculations, soundex codes and other miscellaneous
geneology-related calculations.

Please reply via E-Mail unless you think others would be interested.  I'll
eventually get to it if you post it, but I'm about 400 articles behind in
c.s.m.programmer (it's hard to keep up if you read all of c.s.m.* :-).

Thanks again in advance.   -Carl


-- 
Carl A Baltrunas 408/922-6206|SMTP:carl@doctor.TYMNET.COM,carl@tymix.tymnet.com
BT Tymnet (Network Services) |UUCP: ...!{ames,pyramid}!oliveb!tymix!doctor!carl
PO Box 49019, MS/C41         |PDP-10 support: 36-bits forever! well, awhile!
San Jose, CA 95161-9019      |(insert cute Macintosh quote here)