Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!husc6!endor!siegel From: siegel@endor.harvard.edu (Rich Siegel) Newsgroups: comp.sys.mac.programmer Subject: Re: Inconsistent SysEnvirons declaration in IM? Message-ID: <3374@husc6.harvard.edu> Date: 8 Dec 89 04:53:15 GMT References: <4184@sbcs.sunysb.edu> Sender: news@husc6.harvard.edu Reply-To: siegel@endor.UUCP (Rich Siegel) Organization: Symantec Language Products Group Lines: 37 In article <4184@sbcs.sunysb.edu> vallon@sblw.CS.SunySB.EDU (Justin Vallon) writes: >I have recently tried to use the SysEnvirons trap as described in >IM V, "Compatability". I have two problems: > >1) SysEnvirons' procedure declaration uses SysEnvRecPtr, while the > discussion uses SysEnvPtr. Which one is right? > >2) I am using LS Pascal 2.0, and have no success in trying to > compile any of the following: This sounds suspiciously like a phone call I got this afternoon. :-) Inside Mac V is wrong. The interface to SysEnvirons is FUNCTION SysEnvirons (version : Integer; VAR env : SysEnvRec) : OSErr; There is no such type as "SysEnvRecPtr", unless you define it yourself, and attempting to pass one as a VAR argument to SysEnvirons will result in havoc. This necessary function interface and data types are built into THINK Pascal. R. ~~~~~~~~~~~~~~~ Rich Siegel Staff Software Developer Symantec Corporation, Language Products Group Internet: siegel@endor.harvard.edu UUCP: ..harvard!endor!siegel "There is no personal problem which cannot be solved by sufficient application of high explosives." ~~~~~~~~~~~~~~~