delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1992/11/16/13:57:11

Date: Mon, 16 Nov 92 12:58:13 EST
From: DJ Delorie <dj AT athena DOT ctron DOT com>
To: cjd AT brb DOT dmt DOT csiro DOT au
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: InfoZip zip19 fix to -r bug

If you are using the structure definition in dos.h, it all works
properly.  findfirst() and findnext() are defined to return a
structure of that type.  They are NOT defined to return an area the
same as what DOS returns.  Go32 adjusts the memory to map how gcc will
compile the structure definition, which is more strictly aligned than
DOS.  In the case you describe, I recommend fixing the code to use the
structure instead of hardcoding offsets, and then it will work for
both Turbo-C and gcc.

DJ
dj AT ctron DOT com
Life is a banana.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019