|
@@ -386,7 +386,9 @@ TYPE
|
|
VAR slide : pchar; {Sliding dictionary for unzipping}
|
|
VAR slide : pchar; {Sliding dictionary for unzipping}
|
|
inbuf : iobuf; {input buffer}
|
|
inbuf : iobuf; {input buffer}
|
|
inpos, readpos : integer; {position in input buffer, position read from file}
|
|
inpos, readpos : integer; {position in input buffer, position read from file}
|
|
|
|
+{$ifdef windows}
|
|
dlghandle : word; {optional: handle of a cancel and "%-done"-dialog}
|
|
dlghandle : word; {optional: handle of a cancel and "%-done"-dialog}
|
|
|
|
+{$endif}
|
|
dlgnotify : integer; {notification code to tell dialog how far the decompression is}
|
|
dlgnotify : integer; {notification code to tell dialog how far the decompression is}
|
|
|
|
|
|
VAR w : longint; {Current Position in slide}
|
|
VAR w : longint; {Current Position in slide}
|
|
@@ -397,13 +399,13 @@ VAR w : longint; {Current Position in slide}
|
|
compsize, {comressed size of file}
|
|
compsize, {comressed size of file}
|
|
reachedsize, {number of bytes read from zipfile}
|
|
reachedsize, {number of bytes read from zipfile}
|
|
uncompsize : longint; {uncompressed size of file}
|
|
uncompsize : longint; {uncompressed size of file}
|
|
- oldpercent : integer; {last percent value shown}
|
|
|
|
crc32val : longint; {crc calculated from data}
|
|
crc32val : longint; {crc calculated from data}
|
|
hufttype : word; {coding type=bit_flag from header}
|
|
hufttype : word; {coding type=bit_flag from header}
|
|
totalabort, {User pressed abort button, set in showpercent!}
|
|
totalabort, {User pressed abort button, set in showpercent!}
|
|
zipeof : boolean; {read over end of zip section for this file}
|
|
zipeof : boolean; {read over end of zip section for this file}
|
|
inuse : boolean; {is unit already in use -> don't call it again!!!}
|
|
inuse : boolean; {is unit already in use -> don't call it again!!!}
|
|
{$ifdef windows}
|
|
{$ifdef windows}
|
|
|
|
+ oldpercent : integer; {last percent value shown}
|
|
lastusedtime : longint; {Time of last usage in timer ticks for timeout!}
|
|
lastusedtime : longint; {Time of last usage in timer ticks for timeout!}
|
|
{$endif}
|
|
{$endif}
|
|
|
|
|
|
@@ -2525,10 +2527,10 @@ BEGIN
|
|
|
|
|
|
totalabort := FALSE;
|
|
totalabort := FALSE;
|
|
zipeof := FALSE;
|
|
zipeof := FALSE;
|
|
- dlghandle := hFileAction;
|
|
|
|
- dlgnotify := cm_index;
|
|
|
|
|
|
|
|
{$ifdef windows}
|
|
{$ifdef windows}
|
|
|
|
+ dlghandle := hFileAction;
|
|
|
|
+ dlgnotify := cm_index;
|
|
messageloop;
|
|
messageloop;
|
|
oldpercent := 0;
|
|
oldpercent := 0;
|
|
{$endif}
|
|
{$endif}
|
|
@@ -2565,8 +2567,8 @@ BEGIN
|
|
unzipfile := unzip_CRCErr;
|
|
unzipfile := unzip_CRCErr;
|
|
erase ( outfile );
|
|
erase ( outfile );
|
|
END ELSE BEGIN
|
|
END ELSE BEGIN
|
|
- oldpercent := 100; {100 percent}
|
|
|
|
{$ifdef windows}
|
|
{$ifdef windows}
|
|
|
|
+ oldpercent := 100; {100 percent}
|
|
IF dlghandle <> 0 THEN
|
|
IF dlghandle <> 0 THEN
|
|
sendmessage ( dlghandle, wm_command, dlgnotify, longint ( @oldpercent ) );
|
|
sendmessage ( dlghandle, wm_command, dlgnotify, longint ( @oldpercent ) );
|
|
{$endif}
|
|
{$endif}
|
|
@@ -3328,7 +3330,12 @@ BEGIN
|
|
END.
|
|
END.
|
|
{
|
|
{
|
|
$Log$
|
|
$Log$
|
|
- Revision 1.3 1999-06-10 15:00:16 peter
|
|
|
|
|
|
+ Revision 1.4 2000-01-26 21:49:33 peter
|
|
|
|
+ * install.pas compilable by FPC again
|
|
|
|
+ * removed some notes from unzip.pas
|
|
|
|
+ * support installer creation under linux (install has name conflict)
|
|
|
|
+
|
|
|
|
+ Revision 1.3 1999/06/10 15:00:16 peter
|
|
* fixed to compile for not os2
|
|
* fixed to compile for not os2
|
|
* update install.dat
|
|
* update install.dat
|
|
|
|
|