just getting my feet wet.... question...
Phil Ronzone
phil at Apple.COM
Sat Mar 18 06:49:08 AEST 1989
In article <2876 at osiris.UUCP> mjr at cthulhu.welch.jhu.edu writes:
>... and started finding things like:
> InsertResMenu(menu,'FONT',0);
>where the second argument is supposed to be a ResType, which is a
>long! From the way it looks and works, however, it appears that that
>@!#&! abominable code is the way the Mac expects to see things ? Is
>this possible ?
Yes, the Toolbox uses a fair number of 4 bytes character "strings", which
are dealt with as 32-bit words. The Point data structure is the same,
although, as a structure, it is acceptable nowadays to pass structures
in C.
Heritage of small ROM/RAM/assembly language days. It does mean that it is
a bit tricky porting QuickDraw to a Cray! :-) :-) :-)
+------------------------+-----------------------+----------------------------+
| Philip K. Ronzone | A/UX System Architect | APPLELINK: RONZONE1 |
| Apple Computer MS 27AJ +-----------------------+----------------------------+
| 10500 N. DeAnza Blvd. | Computer viruses don't cause security problems, |
| Cupertino CA 95014 | computer programmers do ... |
+------------------------+----------------------------------------------------+
|{amdahl,decwrl,sun,voder,nsc,mtxinu,dual,unisoft}!apple!phil |
+-----------------------------------------------------------------------------+
More information about the Comp.unix.aux
mailing list