🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.mac
Article #40370

Re: MPW C 3.0 Help!

#40370
From: Tim Dierks
Date: Wed, 05 Apr 1989 16:11
26 lines
1613 bytes
From article <38240@bbn.COM>, by levin@bbn.com (Joel B Levin):
>In article <38226@bbn.COM> levin@BBN.COM (Joel B Levin) writes:
>>In article <1748@amelia.nas.nasa.gov> prabhu@amelia.nas.nasa.gov (Dinesh K. Prabhu) writes:
>>>     I recently got MPW C(3.0) and I am planning on switching to that
>>>   environment. Could someone give me helpful tips on converting LSC 3.0
>>
>> [ Notes about going from LSC to MPW]
>
> [More notes about LSC -> MPW]

  One other thing is that Str255s are different: in LSC, they're arrays of characters,
in MPW, they're a struct, which means you occasionally have to do different things to
them.  The most annoying, however, is the fact that in MPW, when you try to call a
Mac function that takes a string, it assumes you're transferring a C string and
messes with it. It also insists that you pass variable of type Point by reference,
rather than by value. Fortunately, it provides all-caps versions of the functions
that work just like LSC's, but it's a pain in the neck anyway (all this may have
been fixed in MPW 3.0, in which case just ignore me.)  Anyway, I've just got a
header file that includes lines like:

#define DrawString DRAWSTRING

Its a kludge, but it works.

Tim Dierks
dierks@ndmath.cc.nd.edu
Technical Details
Message-ID: <1353@ndmath.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!iuvax!ndcheg!ndmath!dierks
References: <38240@bbn.COM>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!iuvax!ndcheg!ndmath!dierks
From: dierks@ndmath.UUCP (Tim Dierks)
Newsgroups: comp.sys.mac
Subject: Re: MPW C 3.0 Help!
Message-ID: <1353@ndmath.UUCP>
Date: 5 Apr 89 16:11:54 GMT
References: <38240@bbn.COM>
Distribution: usa
Organization: Math. Dept., Univ. of Notre Dame
Lines: 26