diff options
author | Mark Adler <madler@alumni.caltech.edu> | 2011-09-09 23:24:33 -0700 |
---|---|---|
committer | Mark Adler <madler@alumni.caltech.edu> | 2011-09-09 23:24:33 -0700 |
commit | 0484693e1723bbab791c56f95597bd7dbe867d03 (patch) | |
tree | 8f31dbed98b4390da74a90b484f2accf8f8a3a8e /contrib | |
parent | 9811b53dd9e8f67015c7199fff12b5bfc6965330 (diff) | |
download | zlib-1.2.2.2.tar.gz zlib-1.2.2.2.tar.bz2 zlib-1.2.2.2.zip |
zlib 1.2.2.2v1.2.2.2
Diffstat (limited to '')
-rw-r--r-- | contrib/README.contrib | 3 | ||||
-rw-r--r-- | contrib/delphi/ZLib.pas | 2 | ||||
-rw-r--r-- | contrib/infback9/inftree9.c | 4 | ||||
-rw-r--r-- | contrib/masmx86/gvmat32.asm | 56 | ||||
-rw-r--r-- | contrib/masmx86/inffas32.asm | 21 | ||||
-rw-r--r-- | contrib/vstudio/readme.txt | 2 | ||||
-rw-r--r-- | contrib/vstudio/vc7/zlib.rc | 6 | ||||
-rw-r--r-- | examples/gzappend.c (renamed from contrib/gzappend/gzappend.c) | 0 |
8 files changed, 49 insertions, 45 deletions
diff --git a/contrib/README.contrib b/contrib/README.contrib index 7778980..732d48c 100644 --- a/contrib/README.contrib +++ b/contrib/README.contrib | |||
@@ -22,9 +22,6 @@ delphi/ by Cosmin Truta <cosmint@cs.ubbcluj.ro> | |||
22 | dotzlib/ by Henrik Ravn <henrik@ravn.com> | 22 | dotzlib/ by Henrik Ravn <henrik@ravn.com> |
23 | Support for Microsoft .Net and Visual C++ .Net | 23 | Support for Microsoft .Net and Visual C++ .Net |
24 | 24 | ||
25 | gzappend/ by Mark Adler <madler@alumni.caltech.edu> | ||
26 | append to a gzip file -- illustrates the use of Z_BLOCK | ||
27 | |||
28 | infback9/ by Mark Adler <madler@alumni.caltech.edu> | 25 | infback9/ by Mark Adler <madler@alumni.caltech.edu> |
29 | Unsupported diffs to infback to decode the deflate64 format | 26 | Unsupported diffs to infback to decode the deflate64 format |
30 | 27 | ||
diff --git a/contrib/delphi/ZLib.pas b/contrib/delphi/ZLib.pas index 8853866..b9d33e2 100644 --- a/contrib/delphi/ZLib.pas +++ b/contrib/delphi/ZLib.pas | |||
@@ -344,7 +344,7 @@ begin | |||
344 | strm.avail_out := OutBytes; | 344 | strm.avail_out := OutBytes; |
345 | DCheck(inflateInit_(strm, zlib_version, sizeof(strm))); | 345 | DCheck(inflateInit_(strm, zlib_version, sizeof(strm))); |
346 | try | 346 | try |
347 | while DCheck(inflate(strm, Z_FINISH)) <> Z_STREAM_END do | 347 | while DCheck(inflate(strm, Z_NO_FLUSH)) <> Z_STREAM_END do |
348 | begin | 348 | begin |
349 | P := OutBuf; | 349 | P := OutBuf; |
350 | Inc(OutBytes, BufInc); | 350 | Inc(OutBytes, BufInc); |
diff --git a/contrib/infback9/inftree9.c b/contrib/infback9/inftree9.c index 7325873..29bef6a 100644 --- a/contrib/infback9/inftree9.c +++ b/contrib/infback9/inftree9.c | |||
@@ -9,7 +9,7 @@ | |||
9 | #define MAXBITS 15 | 9 | #define MAXBITS 15 |
10 | 10 | ||
11 | const char inflate9_copyright[] = | 11 | const char inflate9_copyright[] = |
12 | " inflate9 1.2.2.1 Copyright 1995-2004 Mark Adler "; | 12 | " inflate9 1.2.2.2 Copyright 1995-2004 Mark Adler "; |
13 | /* | 13 | /* |
14 | If you use the zlib library in a product, an acknowledgment is welcome | 14 | If you use the zlib library in a product, an acknowledgment is welcome |
15 | in the documentation of your product. If for some reason you cannot | 15 | in the documentation of your product. If for some reason you cannot |
@@ -64,7 +64,7 @@ unsigned short FAR *work; | |||
64 | static const unsigned short lext[31] = { /* Length codes 257..285 extra */ | 64 | static const unsigned short lext[31] = { /* Length codes 257..285 extra */ |
65 | 128, 128, 128, 128, 128, 128, 128, 128, 129, 129, 129, 129, | 65 | 128, 128, 128, 128, 128, 128, 128, 128, 129, 129, 129, 129, |
66 | 130, 130, 130, 130, 131, 131, 131, 131, 132, 132, 132, 132, | 66 | 130, 130, 130, 130, 131, 131, 131, 131, 132, 132, 132, 132, |
67 | 133, 133, 133, 133, 144, 77, 207}; | 67 | 133, 133, 133, 133, 144, 72, 199}; |
68 | static const unsigned short dbase[32] = { /* Distance codes 0..31 base */ | 68 | static const unsigned short dbase[32] = { /* Distance codes 0..31 base */ |
69 | 1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, | 69 | 1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, |
70 | 65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073, | 70 | 65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073, |
diff --git a/contrib/masmx86/gvmat32.asm b/contrib/masmx86/gvmat32.asm index ec360e6..e841a7f 100644 --- a/contrib/masmx86/gvmat32.asm +++ b/contrib/masmx86/gvmat32.asm | |||
@@ -47,21 +47,25 @@ | |||
47 | 47 | ||
48 | 48 | ||
49 | 49 | ||
50 | ; all the +4 offsets are due to the addition of pending_buf_size (in zlib | 50 | ; all the +addstr offsets are due to the addition of pending_buf_size in zlib 1.04 |
51 | ; and adding gzhead and gzindex in zlib 1.2.2.1 | ||
51 | ; in the deflate_state structure since the asm code was first written | 52 | ; in the deflate_state structure since the asm code was first written |
52 | ; (if you compile with zlib 1.0.4 or older, remove the +4). | 53 | ; (if you compile with zlib 1.0.4 or older, set addstr to 0). |
54 | ; (if you compiler with zlib between 1.04 and 1.2.1, set addstr to 4) | ||
53 | ; Note : these value are good with a 8 bytes boundary pack structure | 55 | ; Note : these value are good with a 8 bytes boundary pack structure |
54 | dep_chain_length equ 70h+4 | 56 | |
55 | dep_window equ 2ch+4 | 57 | addstr equ 4+8 |
56 | dep_strstart equ 60h+4 | 58 | dep_chain_length equ 70h+addstr |
57 | dep_prev_length equ 6ch+4 | 59 | dep_window equ 2ch+addstr |
58 | dep_nice_match equ 84h+4 | 60 | dep_strstart equ 60h+addstr |
59 | dep_w_size equ 20h+4 | 61 | dep_prev_length equ 6ch+addstr |
60 | dep_prev equ 34h+4 | 62 | dep_nice_match equ 84h+addstr |
61 | dep_w_mask equ 28h+4 | 63 | dep_w_size equ 20h+addstr |
62 | dep_good_match equ 80h+4 | 64 | dep_prev equ 34h+addstr |
63 | dep_match_start equ 64h+4 | 65 | dep_w_mask equ 28h+addstr |
64 | dep_lookahead equ 68h+4 | 66 | dep_good_match equ 80h+addstr |
67 | dep_match_start equ 64h+addstr | ||
68 | dep_lookahead equ 68h+addstr | ||
65 | 69 | ||
66 | 70 | ||
67 | _TEXT segment | 71 | _TEXT segment |
@@ -597,19 +601,19 @@ curmatch equ esp + 60 | |||
597 | ;;; program to crash horribly, without so much as a warning at | 601 | ;;; program to crash horribly, without so much as a warning at |
598 | ;;; compile time. Sigh.) | 602 | ;;; compile time. Sigh.) |
599 | 603 | ||
600 | dsWSize equ 36 | 604 | dsWSize equ 36+addstr-4 |
601 | dsWMask equ 44 | 605 | dsWMask equ 44+addstr-4 |
602 | dsWindow equ 48 | 606 | dsWindow equ 48+addstr-4 |
603 | dsPrev equ 56 | 607 | dsPrev equ 56+addstr-4 |
604 | dsMatchLen equ 88 | 608 | dsMatchLen equ 88+addstr-4 |
605 | dsPrevMatch equ 92 | 609 | dsPrevMatch equ 92+addstr-4 |
606 | dsStrStart equ 100 | 610 | dsStrStart equ 100+addstr-4 |
607 | dsMatchStart equ 104 | 611 | dsMatchStart equ 104+addstr-4 |
608 | dsLookahead equ 108 | 612 | dsLookahead equ 108+addstr-4 |
609 | dsPrevLen equ 112 | 613 | dsPrevLen equ 112+addstr-4 |
610 | dsMaxChainLen equ 116 | 614 | dsMaxChainLen equ 116+addstr-4 |
611 | dsGoodMatch equ 132 | 615 | dsGoodMatch equ 132+addstr-4 |
612 | dsNiceMatch equ 136 | 616 | dsNiceMatch equ 136+addstr-4 |
613 | 617 | ||
614 | 618 | ||
615 | ;;; match.asm -- Pentium-Pro-optimized version of longest_match() | 619 | ;;; match.asm -- Pentium-Pro-optimized version of longest_match() |
diff --git a/contrib/masmx86/inffas32.asm b/contrib/masmx86/inffas32.asm index 7d76e1c..531bcef 100644 --- a/contrib/masmx86/inffas32.asm +++ b/contrib/masmx86/inffas32.asm | |||
@@ -84,17 +84,20 @@ dd 2147483647 | |||
84 | dd 4294967295 | 84 | dd 4294967295 |
85 | 85 | ||
86 | 86 | ||
87 | ; head was added in zlib 1.2.2.1, so we add addstr | ||
88 | ; set addstr to 0 with zlib 1.2.1 of below | ||
89 | addstr equ 4 | ||
87 | 90 | ||
88 | mode_state equ 0 ;/* state->mode */ | 91 | mode_state equ 0 ;/* state->mode */ |
89 | wsize_state equ 32 ;/* state->wsize */ | 92 | wsize_state equ 32+addstr ;/* state->wsize */ |
90 | write_state equ (36+4) ;/* state->write */ | 93 | write_state equ (36+4+addstr) ;/* state->write */ |
91 | window_state equ (40+4) ;/* state->window */ | 94 | window_state equ (40+4+addstr) ;/* state->window */ |
92 | hold_state equ (44+4) ;/* state->hold */ | 95 | hold_state equ (44+4+addstr) ;/* state->hold */ |
93 | bits_state equ (48+4) ;/* state->bits */ | 96 | bits_state equ (48+4+addstr) ;/* state->bits */ |
94 | lencode_state equ (64+4) ;/* state->lencode */ | 97 | lencode_state equ (64+4+addstr) ;/* state->lencode */ |
95 | distcode_state equ (68+4) ;/* state->distcode */ | 98 | distcode_state equ (68+4+addstr) ;/* state->distcode */ |
96 | lenbits_state equ (72+4) ;/* state->lenbits */ | 99 | lenbits_state equ (72+4+addstr) ;/* state->lenbits */ |
97 | distbits_state equ (76+4) ;/* state->distbits */ | 100 | distbits_state equ (76+4+addstr) ;/* state->distbits */ |
98 | 101 | ||
99 | 102 | ||
100 | ;;SECTION .text | 103 | ;;SECTION .text |
diff --git a/contrib/vstudio/readme.txt b/contrib/vstudio/readme.txt index 3a4b85c..e709d1b 100644 --- a/contrib/vstudio/readme.txt +++ b/contrib/vstudio/readme.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | Building instructions for the DLL versions of Zlib 1.21 | 1 | Building instructions for the DLL versions of Zlib 1.2.x |
2 | ======================================================= | 2 | ======================================================= |
3 | 3 | ||
4 | This directory contains projects that build zlib and minizip using | 4 | This directory contains projects that build zlib and minizip using |
diff --git a/contrib/vstudio/vc7/zlib.rc b/contrib/vstudio/vc7/zlib.rc index cb779f7..d35cef0 100644 --- a/contrib/vstudio/vc7/zlib.rc +++ b/contrib/vstudio/vc7/zlib.rc | |||
@@ -2,8 +2,8 @@ | |||
2 | 2 | ||
3 | #define IDR_VERSION1 1 | 3 | #define IDR_VERSION1 1 |
4 | IDR_VERSION1 VERSIONINFO MOVEABLE IMPURE LOADONCALL DISCARDABLE | 4 | IDR_VERSION1 VERSIONINFO MOVEABLE IMPURE LOADONCALL DISCARDABLE |
5 | FILEVERSION 1,2,2,1 | 5 | FILEVERSION 1,2,2,2 |
6 | PRODUCTVERSION 1,2,2,1 | 6 | PRODUCTVERSION 1,2,2,2 |
7 | FILEFLAGSMASK VS_FFI_FILEFLAGSMASK | 7 | FILEFLAGSMASK VS_FFI_FILEFLAGSMASK |
8 | FILEFLAGS 0 | 8 | FILEFLAGS 0 |
9 | FILEOS VOS_DOS_WINDOWS32 | 9 | FILEOS VOS_DOS_WINDOWS32 |
@@ -17,7 +17,7 @@ BEGIN | |||
17 | 17 | ||
18 | BEGIN | 18 | BEGIN |
19 | VALUE "FileDescription", "zlib data compression library\0" | 19 | VALUE "FileDescription", "zlib data compression library\0" |
20 | VALUE "FileVersion", "1.2.2.1\0" | 20 | VALUE "FileVersion", "1.2.2.2\0" |
21 | VALUE "InternalName", "zlib\0" | 21 | VALUE "InternalName", "zlib\0" |
22 | VALUE "OriginalFilename", "zlib.dll\0" | 22 | VALUE "OriginalFilename", "zlib.dll\0" |
23 | VALUE "ProductName", "ZLib.DLL\0" | 23 | VALUE "ProductName", "ZLib.DLL\0" |
diff --git a/contrib/gzappend/gzappend.c b/examples/gzappend.c index e9e878e..e9e878e 100644 --- a/contrib/gzappend/gzappend.c +++ b/examples/gzappend.c | |||