Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!olivea!uunet!mcsun!ukc!axion!uzi-9mm.fulcrum.bt.co.uk!cat.fulcrum.bt.co.uk!nan.co.uk!sw From: sw@nan.co.uk (Sak Wathanasin) Newsgroups: comp.sys.mac.programmer Subject: Re: THINK C not-so-Update Message-ID: <0101000D.7xtdke@nan.co.uk> Date: 22 May 91 16:57:41 GMT Reply-To: sw@network-analysis-ltd.co.uk Organization: Network Analysis Ltd Lines: 39 X-Mailer: uAccess - Mac Release: 1.0.3 In article <1991May21.182332.26836@cs.ucla.edu>, tj@kona.cs.ucla.edu (Tom Johnson) writes: > Oh, come on, it's not that difficult to get up and running. The problems > with the changes in the names of the header files is pretty trivial if > you are using the MacHeaders option (particularly if you use one of the > alternate MacHeaders which includes _all_ of the header files--then > you can simply delete Menus.h an all the rest from the code). The rest > of it is just a matter of checking your prototypes. If you've been using > the MacProtos header files all along, even this change is relatively > painless. Yes, I agree in general; the few problems I had were to do with the different syntax for accessing low mem globals (which, of course, one should never reference :-). Being able to use MPW header files is something we should all applaud even if it means a few changes to our code now. There was a small problem with the header files on the 7.0B4 CD; I don't know if it has been fixed or not. Just in case it hasn't, in types.h you should change the lines #ifndef NULL #define NULL 0 #endif #define nil 0 to read #ifndef NULL #define NULL 0L #endif #define nil 0L and rebuild the "MacHeaders" file. Sak Wathanasin Network Analysis Limited uucp: ...!ukc!nan!sw other: sw@network-analysis-ltd.co.uk phone: (+44) 203 419996 snail: 178 Wainbody Ave South, Coventry CV3 6BX, UK