Path: utzoo!utgpu!watserv1!ria!uwovax!7103_2622 From: 7103_2622@uwovax.uwo.ca (Eric Smith) Newsgroups: comp.sys.atari.st.tech Subject: Re: Cookie Jar Message-ID: <7482.271fb5cf@uwovax.uwo.ca> Date: 20 Oct 90 06:26:23 GMT References: <15403@hydra.gatech.EDU> Lines: 27 > In article <7204.27062454@uwovax.uwo.ca> 7103_2622@uwovax.uwo.ca > (Eric Smith) writes: > >> ... (some text and source code) >>/* >> * A pointer to the cookie jar is found at 0x5a0. If there is no cookie jar >> * installed, this pointer will be 0. The cookie jar itself is an array >> * of cookies, with the last cookie having a "tag" of 0x00000000. (The value >> * of this cookie is the number of slots left in the cookie jar.) >> */ > Aargh! I can't believe I wrote this (but checking, I see a similar comment in the MiNT source code, so I probably did). As with all comments in source code, it should be ignored :-). Claus was right; the value should be the *total* number of slots in the cookie jar, not the number remaining. (Watch out under MiNT -- MiNT 0.6 gets this wrong, despite clear documentation to the contrary. I made the mistake of believing my comment. Fortunately, MiNT allocates a completely new cookie jar with extra room, and it should run after everything in the AUTO folder, so this probably isn't a problem. It'll be fixed in 0.7). -- Eric R. Smith email: Dept. of Mathematics ersmith@uwovax.uwo.ca University of Western Ontario ersmith@uwovax.bitnet London, Ont. Canada N6A 5B7 ph: (519) 661-3638