Path: utzoo!attcan!uunet!lll-winken!ames!oliveb!apple!phil From: phil@Apple.COM (Phil Ronzone) Newsgroups: comp.unix.aux Subject: Re: just getting my feet wet.... question... Keywords: is this real?! Message-ID: <27490@apple.Apple.COM> Date: 17 Mar 89 20:49:08 GMT References: <2876@osiris.UUCP> Organization: Apple Computer A/UX Group Lines: 25 In article <2876@osiris.UUCP> mjr@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 | +-----------------------------------------------------------------------------+