home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!pageworks.com!world!eff!sol.ctr.columbia.edu!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!ucbvax!ucdavis!franklin
- From: franklin@endive.eecs.ucdavis.edu (Paul Franklin)
- Newsgroups: comp.sys.mac.programmer
- Subject: Re: INIT's/System Extension Questions
- Message-ID: <FRANKLIN.92Nov11154658@endive.eecs.ucdavis.edu>
- Date: 11 Nov 92 23:46:58 GMT
- References: <1992Nov5.184623.15326@asuvax.eas.asu.edu> <19028@ucdavis.ucdavis.edu>
- <1992Nov9.142944.3187@dartvax.dartmouth.edu>
- Sender: usenet@ucdavis.ucdavis.edu
- Organization: University of California at Davis
- Lines: 39
- In-reply-to: Mark.R.Valence@dartmouth.edu's message of 9 Nov 92 14:29:44 GMT
-
- In article <1992Nov9.142944.3187@dartvax.dartmouth.edu> Mark.R.Valence@dartmouth.edu (Mark R. Valence) writes:
- >In article <19028@ucdavis.ucdavis.edu>
- >cklarson@taquito.engr.ucdavis.edu (Christopher Klaus Larson) writes:
- >
- >> Feel free to use this as you see fit. Optimizations and bug fixes welcome.
- >
- >I have two minor comments:
- >
- >1. You save A5, and then restore A5 AND CurrentA5 to the A5's original
- >value. This is dangerous, as you are assuming A5 points to a valid
- >quickdraw globals area upon entry to your code. I would suggest
- >instead that you save BOTH A5 and CurrentA5 in separate locations, and
- >restore them separately. If you don't, you will see some weird bugs
- >with some pretty widely used INITs (I won't mention any names).
-
- Very true. I do assume that A5 and CurrentA5 contain the same value
- upon entry -- a POOR assumption. The value of CurrentA5 should be
- saved and restored to its value on entry, not restored to A5's entry
- value.
-
- >2. You should probably give some credit to the guys who wrote the
- >original and most widely used version of this code. They were the
- >ones, I believe, who first used CurApName for temporary storage, and
- >made it the "standard". I, too have written my own version of this
- >code (it's smaller than the original, and does the same stuff), but my
- >code still credits the original source.
-
- Absolutely. The original routine was written by Paul Mercer, Darin Adler,
- and Paul Snively from an idea by Steve Capps. Their code did standardize
- the use of CurApName for temporary storage. In no way do I attempt to
- take credit for thier work and I apologize for this omission.
-
- Thanks for the comments.
-
- (Sorry it took so long for me to respond -- we have had some problems
- with our news server so I had to post this from a friend's account.)
-
- -- Chris
- cklarson@engr.ucdavis.edu
-