P.PRIAPUS@HAMLET.STANFORD.EDU (Bill Lipa) (02/12/88)
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. Bill Bitnet:p.priapus%hamlet.stanford.edu@forsythe.stanford.edu -------
leonardr@uxe.cso.uiuc.edu (02/15/88)
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 + + + + + +---------------------------------+-----------------------------------+