🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.mac
Article #25100

Re: SysEnvirons inconsistency

#25100
From: leonardr
Date: Mon, 15 Feb 1988 00:24
30 lines
2350 bytes
P.PRIAPUS@HAMLET.STANFORD.EDU(Bill ??) writes in comp.sys.mac

>There is an inconsistency in Inside Macintosh V regarding the definition of
>SysEnvirons. In the text it says that SysEnvirons expects to be passed a
>pointer to a record which it will fill out with environment information. In
>the end-chapter summary it says that SysEnvirons expects the actual record.
>This matters, you see, because if the record gets expanded later to contain
>more information, I don't want my stack to be destroyed. Will future versions
>of SysEnvirons be smart enough not to fill out a version 2 record if I only
>request version 1? The LightSpeed Pascal interfaces believe the summary at the
>end of the chapter.
>
	As I understand the SysEnvirons call (don't have my IM in front of me
so I am doing this from memory).  It takes the record itself and then fills it
in based on the version number that you pass it.  I believe that if you ask for
version 2 and there is only a version 1 that you will get version 1, but if you
ask for version 1 and there is a version 2 it does not give you version 2.


+---------------------------------+-----------------------------------+
+                                 +  Any thing I say may be taken as  +
+   Leonard Rosenthol             +  fact, then again you might decide+
+   President, LazerWare, inc.    +  that it really isn't, so you     +
+                                 +  never know, do you??             +
+   leonardr@uxe.cso.uiuc.edu     +                                   +
+   GEnie:  MACgician             +                                   +
+   Delphi: MACgician             +                                   +
+                                 +                                   +
+---------------------------------+-----------------------------------+
Technical Details
Message-ID: <46100075@uxe.cso.uiuc.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!rutgers!husc6!bloom-beacon!gatech!purdue!i.cc.purdue.edu!j.cc.purdue.edu!pur-ee!uiucdcs!uxc.cso.uiuc.edu!uxe.cso.uiuc.edu!leonardr
References: <114@<12374053010>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!rutgers!husc6!bloom-beacon!gatech!purdue!i.cc.purdue.edu!j.cc.purdue.edu!pur-ee!uiucdcs!uxc.cso.uiuc.edu!uxe.cso.uiuc.edu!leonardr
From: leonardr@uxe.cso.uiuc.edu
Newsgroups: comp.sys.mac
Subject: Re: SysEnvirons inconsistency
Message-ID: <46100075@uxe.cso.uiuc.edu>
Date: 15 Feb 88 00:24:00 GMT
References: <114@<12374053010>
Lines: 30
Nf-ID: #R:<12374053010:114:uxe.cso.uiuc.edu:46100075:000:1811
Nf-From: uxe.cso.uiuc.edu!leonardr    Feb 14 18:24:00 1988