Message-Id: Comments: Authenticated sender is From: "Salvador Eduardo Tropea (SET)" Organization: INTI To: Eli Zaretskii , djgpp-workers AT delorie DOT com, DJ Delorie Date: Tue, 17 Feb 1998 09:14:57 +0000 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Re: Some questions. References: In-reply-to: Precedence: bulk Eli Zaretskii wrote: > On Mon, 16 Feb 1998, Salvador Eduardo Tropea (SET) wrote: > > > 2) How can I detect if the stub is for the djgpp 2.00 or 2.01 files? I think > > that I can get an accurate detect just looking in the date of creation of > > the stub, but what's the date that I can use as thresold? > > v2.01 was released circa Sep 1996, and v2.0 around Feb 1996. DJ, can > you check when the first v2.01 beta was released? If that's > impossible, try using June 1996 as the dividing line. Ok > > I got these questions while I was writing a little program to determine if > > a file is a DJGPP exe. > > Do you really need to know which sub-version it is? IMHO, it's quite > dangerous to rely on this for any smart decisions. For example, you > could have stub-less COFF files, mixed versions of library and the > stub, etc. Well I know it sounds crazy, but I want it in DJVerify to detect mixed installations. That's a common problem (people saying: Why RHIDE pass only 128 bytes to gcc?). With RHIDE and DJGPP itself we can just check the *.ver files, but if the user deleted the .ver files we will fail and with make and other tools isn't so easy because the same version was released compiled for 2.00 and 2.01 (or I'm wrong?). That's all, and is just to add some information to the detection to take a better desition. Additionally stub-less COFF files can be detected by the library version. And very mixed things can be only created by people using alphas or similar stuff that normally knows what happends without the need of any kind of verify program. SET ------------------------------------ 0 -------------------------------- Visit my home page: http://set-soft.home.ml.org/ or http://www.geocities.com/SiliconValley/Vista/6552/ Salvador Eduardo Tropea (SET). (Electronics Engineer) Alternative e-mail: set-sot AT usa DOT net - ICQ: 2951574 Address: Curapaligue 2124, Caseros, 3 de Febrero Buenos Aires, (1678), ARGENTINA TE: +(541) 759 0013