Path: utzoo!attcan!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!dali.cs.montana.edu!milton!oregon!cs.uoregon.edu!mkelly From: mkelly@cs.uoregon.edu (Michael A. Kelly) Newsgroups: comp.sys.mac.programmer Subject: THINK C --> MPW C Message-ID: <1990Dec24.073137.16178@cs.uoregon.edu> Date: 24 Dec 90 07:31:37 GMT Sender: news@cs.uoregon.edu (Netnews Owner) Organization: Department of Computer Science, University of Oregon Lines: 19 I've just finished porting a rather simple application from THINK C to MPW C. After changing all the standard header names, the program compiled, but it didn't work quite right. After much deliberation (and a bout with SADE), and finally a trip through the manuals, I discovered that MPW's 'int's are 4 bytes long (whereas THINK's are 2 bytes). There was a small section of code that relied on the size of plain integers. After changing those ints to shorts everything works fine. My question is: What other elusive differences do I have to look forward to when porting from THINK C to MPW C ? Thanks, Mike. -- Michael A. Kelly | "Fish heads, fish heads, Internet: mkelly@cs.uoregon.edu | Roly-poly fish heads, America Online: Michael792 | Fish heads, fish heads, Compu$erve: 73567,1651 | Eat them up, yum!" - Barnes & Barnes