diff options
Diffstat (limited to 'README')
| -rw-r--r-- | README | 31 |
1 files changed, 15 insertions, 16 deletions
| @@ -1,4 +1,4 @@ | |||
| 1 | zlib 1.0.9 is a general purpose data compression library. All the code | 1 | zlib 1.1.0 is a general purpose data compression library. All the code |
| 2 | is thread safe. The data format used by the zlib library | 2 | is thread safe. The data format used by the zlib library |
| 3 | is described by RFCs (Request for Comments) 1950 to 1952 in the files | 3 | is described by RFCs (Request for Comments) 1950 to 1952 in the files |
| 4 | ftp://ds.internic.net/rfc/rfc1950.txt (zlib format), rfc1951.txt (deflate | 4 | ftp://ds.internic.net/rfc/rfc1950.txt (zlib format), rfc1951.txt (deflate |
| @@ -25,21 +25,15 @@ Mark Nelson wrote an article about zlib for the Jan. 1997 issue of | |||
| 25 | Dr. Dobb's Journal; a copy of the article is available in | 25 | Dr. Dobb's Journal; a copy of the article is available in |
| 26 | http://web2.airmail.net/markn/articles/zlibtool/zlibtool.htm | 26 | http://web2.airmail.net/markn/articles/zlibtool/zlibtool.htm |
| 27 | 27 | ||
| 28 | The changes made in version 1.0.9 are documented in the file ChangeLog. | 28 | The changes made in version 1.1.0 are documented in the file ChangeLog. |
| 29 | The main changes since 1.0.8 are: | 29 | The main changes since 1.0.9 are: |
| 30 | 30 | ||
| 31 | - added gzputs and gzgets functions | 31 | - do not return STREAM_END prematurely in inflate (John Bowler) |
| 32 | - do not clear eof flag in gzseek (Mark Diekhans) | 32 | - revert to the zlib 1.0.8 inflate to avoid the gcc 2.8.0 bug (Jeremy Buhler) |
| 33 | - fix gzseek for files in transparent mode (Mark Diekhans) | 33 | - compile with -DFASTEST to get compression code optimized for speed only |
| 34 | - do not assume that vsprintf returns the number of bytes written (Jens Krinke) | 34 | - in minigzip, try mmap'ing the input file first (Miguel Albrecht) |
| 35 | - replace EXPORT with ZEXPORT to avoid conflict with other programs | 35 | - increase size of I/O buffers in minigzip.c and gzio.c (not a big gain |
| 36 | - added compress2 in zconf.h, zlib.def, zlib.dnt | 36 | on Sun but significant on HP) |
| 37 | - new asm code from Gilles Vollant in contrib/asm386 | ||
| 38 | - simplify the inflate code (Mark): | ||
| 39 | . Replace ZALLOC's in huft_build() with single ZALLOC in inflate_blocks_new() | ||
| 40 | . ZALLOC the length list in inflate_trees_fixed() instead of using stack | ||
| 41 | . ZALLOC the value area for huft_build() instead of using stack | ||
| 42 | . Simplify Z_FINISH check in inflate() | ||
| 43 | 37 | ||
| 44 | 38 | ||
| 45 | Unsupported third party contributions are provided in directory "contrib". | 39 | Unsupported third party contributions are provided in directory "contrib". |
| @@ -56,6 +50,11 @@ A Python interface to zlib written by A.M. Kuchling <amk@magnet.com> | |||
| 56 | is available from the Python Software Association sites, such as: | 50 | is available from the Python Software Association sites, such as: |
| 57 | ftp://ftp.python.org/pub/python/contrib/Encoding/zlib*.tar.gz | 51 | ftp://ftp.python.org/pub/python/contrib/Encoding/zlib*.tar.gz |
| 58 | 52 | ||
| 53 | An experimental package to read files in .zip format, written on top of | ||
| 54 | zlib by Gilles Vollant <info@winimage.com>, is available at | ||
| 55 | http://www.winimage.com/zLibDll/unzip.html | ||
| 56 | |||
| 57 | |||
| 59 | Notes for some targets: | 58 | Notes for some targets: |
| 60 | 59 | ||
| 61 | - To build a Windows DLL version, include in a DLL project zlib.def, zlib.rc | 60 | - To build a Windows DLL version, include in a DLL project zlib.def, zlib.rc |
| @@ -83,7 +82,7 @@ Notes for some targets: | |||
| 83 | writes to pointers are atomic. Also the functions zalloc and zfree passed | 82 | writes to pointers are atomic. Also the functions zalloc and zfree passed |
| 84 | to deflateInit must be multi-threaded in this case. | 83 | to deflateInit must be multi-threaded in this case. |
| 85 | 84 | ||
| 86 | - gzdopen is not supported on RISCOS, BEOS and Mac | 85 | - gzdopen is not supported on RISCOS, BEOS and by some Mac compilers. |
| 87 | 86 | ||
| 88 | - For Turbo C the small model is supported only with reduced performance to | 87 | - For Turbo C the small model is supported only with reduced performance to |
| 89 | avoid any far allocation; it was tested with -DMAX_WBITS=11 -DMAX_MEM_LEVEL=3 | 88 | avoid any far allocation; it was tested with -DMAX_WBITS=11 -DMAX_MEM_LEVEL=3 |
