diff options
| author | Mark Adler <madler@alumni.caltech.edu> | 2011-09-09 23:23:27 -0700 |
|---|---|---|
| committer | Mark Adler <madler@alumni.caltech.edu> | 2011-09-09 23:23:27 -0700 |
| commit | 7a33a861d1526894272a8a4b08527ce32316d750 (patch) | |
| tree | 3611b8e0f01c20f809015f30fba0a599daf1413b /contrib | |
| parent | a2506218cd8c32416d0d15260834f3c23d910fc8 (diff) | |
| download | zlib-1.2.1.tar.gz zlib-1.2.1.tar.bz2 zlib-1.2.1.zip | |
zlib 1.2.1v1.2.1
Diffstat (limited to 'contrib')
| -rw-r--r-- | contrib/ada/zlib-thin.ads | 22 | ||||
| -rw-r--r-- | contrib/delphi/readme.txt | 2 | ||||
| -rw-r--r-- | contrib/gzappend/gzappend.c | 2 | ||||
| -rw-r--r-- | contrib/infback9/inftree9.c | 4 | ||||
| -rw-r--r-- | contrib/pascal/zlibpas.pas | 1 |
5 files changed, 13 insertions, 18 deletions
diff --git a/contrib/ada/zlib-thin.ads b/contrib/ada/zlib-thin.ads index af1287a..c227374 100644 --- a/contrib/ada/zlib-thin.ads +++ b/contrib/ada/zlib-thin.ads | |||
| @@ -146,17 +146,6 @@ private package ZLib.Thin is | |||
| 146 | strategy : Int) | 146 | strategy : Int) |
| 147 | return Int; -- zlib.h:506 | 147 | return Int; -- zlib.h:506 |
| 148 | 148 | ||
| 149 | function deflateBound | ||
| 150 | (strm : Z_Streamp; | ||
| 151 | sourceLen : ULong) | ||
| 152 | return Int; -- zlib.h:595 | ||
| 153 | |||
| 154 | function deflatePrime | ||
| 155 | (strm : Z_Streamp; | ||
| 156 | bits : Int; | ||
| 157 | value : Int) | ||
| 158 | return Int; -- zlib.h:604 | ||
| 159 | |||
| 160 | function inflateSetDictionary | 149 | function inflateSetDictionary |
| 161 | (strm : Z_Streamp; | 150 | (strm : Z_Streamp; |
| 162 | dictionary : Byte_Access; | 151 | dictionary : Byte_Access; |
| @@ -399,6 +388,12 @@ private package ZLib.Thin is | |||
| 399 | 388 | ||
| 400 | function zlibCompileFlags return ULong; | 389 | function zlibCompileFlags return ULong; |
| 401 | 390 | ||
| 391 | function deflatePrime | ||
| 392 | (strm : Z_Streamp; | ||
| 393 | bits : Int; | ||
| 394 | value : Int) | ||
| 395 | return Int; | ||
| 396 | |||
| 402 | private | 397 | private |
| 403 | 398 | ||
| 404 | type Z_Stream is record -- zlib.h:68 | 399 | type Z_Stream is record -- zlib.h:68 |
| @@ -432,8 +427,6 @@ private | |||
| 432 | pragma Import (C, deflateCopy, "deflateCopy"); | 427 | pragma Import (C, deflateCopy, "deflateCopy"); |
| 433 | pragma Import (C, deflateReset, "deflateReset"); | 428 | pragma Import (C, deflateReset, "deflateReset"); |
| 434 | pragma Import (C, deflateParams, "deflateParams"); | 429 | pragma Import (C, deflateParams, "deflateParams"); |
| 435 | pragma Import (C, deflateBound, "deflateBound"); | ||
| 436 | pragma Import (C, deflatePrime, "deflatePrime"); | ||
| 437 | pragma Import (C, inflateSetDictionary, "inflateSetDictionary"); | 430 | pragma Import (C, inflateSetDictionary, "inflateSetDictionary"); |
| 438 | pragma Import (C, inflateSync, "inflateSync"); | 431 | pragma Import (C, inflateSync, "inflateSync"); |
| 439 | pragma Import (C, inflateReset, "inflateReset"); | 432 | pragma Import (C, inflateReset, "inflateReset"); |
| @@ -467,13 +460,14 @@ private | |||
| 467 | pragma Import (C, inflateSyncPoint, "inflateSyncPoint"); | 460 | pragma Import (C, inflateSyncPoint, "inflateSyncPoint"); |
| 468 | pragma Import (C, get_crc_table, "get_crc_table"); | 461 | pragma Import (C, get_crc_table, "get_crc_table"); |
| 469 | 462 | ||
| 470 | -- since zlib 1.2.0: | 463 | -- added in zlib 1.2.1: |
| 471 | 464 | ||
| 472 | pragma Import (C, inflateCopy, "inflateCopy"); | 465 | pragma Import (C, inflateCopy, "inflateCopy"); |
| 473 | pragma Import (C, compressBound, "compressBound"); | 466 | pragma Import (C, compressBound, "compressBound"); |
| 474 | pragma Import (C, deflateBound, "deflateBound"); | 467 | pragma Import (C, deflateBound, "deflateBound"); |
| 475 | pragma Import (C, gzungetc, "gzungetc"); | 468 | pragma Import (C, gzungetc, "gzungetc"); |
| 476 | pragma Import (C, zlibCompileFlags, "zlibCompileFlags"); | 469 | pragma Import (C, zlibCompileFlags, "zlibCompileFlags"); |
| 470 | pragma Import (C, deflatePrime, "deflatePrime"); | ||
| 477 | 471 | ||
| 478 | pragma Import (C, inflateBackInit, "inflateBackInit_"); | 472 | pragma Import (C, inflateBackInit, "inflateBackInit_"); |
| 479 | 473 | ||
diff --git a/contrib/delphi/readme.txt b/contrib/delphi/readme.txt index 65e58b3..2dc9a8b 100644 --- a/contrib/delphi/readme.txt +++ b/contrib/delphi/readme.txt | |||
| @@ -14,7 +14,7 @@ we recommend the users to update their ZLib unit. | |||
| 14 | Summary of modifications | 14 | Summary of modifications |
| 15 | ======================== | 15 | ======================== |
| 16 | 16 | ||
| 17 | - Improved makefile, adapted to zlib version 1.2.0. | 17 | - Improved makefile, adapted to zlib version 1.2.1. |
| 18 | 18 | ||
| 19 | - Some field types from TZStreamRec are changed from Integer to | 19 | - Some field types from TZStreamRec are changed from Integer to |
| 20 | Longint, for consistency with the zlib.h header, and for 64-bit | 20 | Longint, for consistency with the zlib.h header, and for 64-bit |
diff --git a/contrib/gzappend/gzappend.c b/contrib/gzappend/gzappend.c index f051864..f2e9e4f 100644 --- a/contrib/gzappend/gzappend.c +++ b/contrib/gzappend/gzappend.c | |||
| @@ -167,7 +167,7 @@ local void rotate(unsigned char *list, unsigned len, unsigned rot) | |||
| 167 | /* structure for gzip file read operations */ | 167 | /* structure for gzip file read operations */ |
| 168 | typedef struct { | 168 | typedef struct { |
| 169 | int fd; /* file descriptor */ | 169 | int fd; /* file descriptor */ |
| 170 | int size; /* 1 << size is bytes in buf */ | 170 | int size; /* 1 << size is bytes in buf */ |
| 171 | unsigned left; /* bytes available at next */ | 171 | unsigned left; /* bytes available at next */ |
| 172 | unsigned char *buf; /* buffer */ | 172 | unsigned char *buf; /* buffer */ |
| 173 | unsigned char *next; /* next byte in buffer */ | 173 | unsigned char *next; /* next byte in buffer */ |
diff --git a/contrib/infback9/inftree9.c b/contrib/infback9/inftree9.c index 44ff721..fe76a1b 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.0.8 Copyright 1995-2003 Mark Adler "; | 12 | " inflate9 1.2.1 Copyright 1995-2003 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, 76, 203}; | 67 | 133, 133, 133, 133, 144, 76, 66}; |
| 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/pascal/zlibpas.pas b/contrib/pascal/zlibpas.pas index 9361914..6d5ebe0 100644 --- a/contrib/pascal/zlibpas.pas +++ b/contrib/pascal/zlibpas.pas | |||
| @@ -166,6 +166,7 @@ function deflateEnd; external; | |||
| 166 | function deflateInit_; external; | 166 | function deflateInit_; external; |
| 167 | function deflateInit2_; external; | 167 | function deflateInit2_; external; |
| 168 | function deflateParams; external; | 168 | function deflateParams; external; |
| 169 | function deflatePrime; external; | ||
| 169 | function deflateReset; external; | 170 | function deflateReset; external; |
| 170 | function deflateSetDictionary; external; | 171 | function deflateSetDictionary; external; |
| 171 | function inflate; external; | 172 | function inflate; external; |
