Message-ID: <339DC0FC.11C8@cs.com> Date: Tue, 10 Jun 1997 21:02:52 +0000 From: "John M. Aldrich" Reply-To: fighteer AT cs DOT com Organization: Two pounds of chaos and a pinch of salt MIME-Version: 1.0 To: DJGPP Workers Mailing List Subject: Re: Latest stub References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Precedence: bulk Eli Zaretskii wrote: > > > stub failed to load. I made a trivial modification to stub.asm to make > > it return a unique code in the 100-110 range corresponding to each > > possible error message that it could emit, thus allowing the batch file > > to read this code and and display an appropriate diagnostic message. > > Currently the stub exits with code 255 for all errors. > > I thought this is already in the v2.01 stub. Did I miss something? The current stub does not have unique return codes for each possible error state - I just checked. I can post a patch to make it do so, but that would raise the question of which version of the stub to base the patch on. ;) When v2.01 came out, I discarded the v2.00 stub that I had modified for DJVERIFY and applied the changes to the new one, so it's a simple diff to generate. I would like to see agreement on the error codes to use, first. I am all too aware of how a trivial change now can prove disastrous in the future when it interacts or interferes with some program that assumes things. Is there any possibility that a program might try to return error codes in the 100-110 range for some purpose, and is it worth worrying about it for such a slim chance? FYI, here are the codes I had been using; as of now, changing them is trivial. It becomes less so when the new stub is actually released. The numbers were arbitrarily assigned based on the order in which the error states are found in the stub. There are really only nine messages; the first two are unused for historical reasons. 100 Not used. 101 Not used. 102 : Cannot open. 103 : Not EXE. 104 : Not COFF. 105 Load error: No DOS memory. 106 Load error: Can't switch modes. 107 Load error: No DPMI selectors. 108 Load error: No DPMI memory. 109 Load error: Need DOS 3. 110 Load error: No DPMI. Comments? Suggestions? -- --------------------------------------------------------------------- | John M. Aldrich, aka Fighteer I | mailto:fighteer AT cs DOT com | | Plan: To find ANYONE willing to | http://www.cs.com/fighteer | | play Descent 2 on DWANGO! | Tagline: | ---------------------------------------------------------------------