Path: utzoo!utgpu!attcan!uunet!lll-winken!lll-tis!mordor!joyce!zodiac!ames!mailrus!chianti!shane From: shane@chianti.cc.umich.edu (Shane Looker) Newsgroups: comp.sys.mac.programmer Subject: Re: LSC almost gets it right. Message-ID: <670@mailrus.cc.umich.edu> Date: 2 Sep 88 13:44:21 GMT References: <2423@rti.UUCP> Sender: usenet@mailrus.cc.umich.edu Reply-To: shane@um.cc.umich.edu (Shane Looker) Organization: University of Michigan Computing Center, Ann Arbor Lines: 23 In article <2423@rti.UUCP> rcb@rti.UUCP (Randy Buckland) writes: !My problem came with expecting the built-in prototypes for the MAC ROM !functions to prevent any mistakes in parameters passing. But apparently, !they only check the size of an argument and do not enforce strict type !compatability like normal prototypes do. Anyway I had the following lines !in my program: ! ! Point position; ! GLobalToLocal (position); ! !I plan to try to define a real prototype for this function and see if it !still allows this kind of error. So Rich, how about an include file from !Think that defines real prototypes for all the ROM functions. !-- ! Randy Buckland (919)-541-7103 The manual clearly states that the MacTraps calls do not have prototypes. (User Manual: p. 124, 1st Paragraph.) You can add prototypes with no problem. (User Manual: p. 125, 3rd Paragraph.) Shane Looker Looker@um.cc.umich.edu