summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* zlib 1.2.11v1.2.11Mark Adler2017-01-1529-54/+58
|
* Permit immediate deflateParams changes before any deflate input.Mark Adler2017-01-152-5/+7
| | | | | | | This permits deflateParams to change the strategy and level right after deflateInit, without having to wait until a header has been written. The parameters can be changed immediately up until the first deflate call that consumes any input data.
* Update high water mark in deflate_stored.Mark Adler2017-01-151-0/+4
| | | | | | | This avoids unnecessary filling of bytes in the sliding window buffer when switching from level zero to a non-zero level. This also provides a consistent indication of deflate having taken input for a later commit ...
* Update vestigial comment from very old Info-ZIP deflate.Mark Adler2017-01-151-2/+2
|
* Fix deflate stored bug when pulling last block from window.Mark Adler2017-01-151-5/+5
| | | | And some cosmetic cleanups.
* Update location of Visual Studio project files.Mark Adler2017-01-151-1/+1
|
* Delete user-specific Visual Studio project files.Mark Adler2017-01-156-24/+0
|
* Change version number to 1.2.10.1.Mark Adler2017-01-1527-53/+53
|
* zlib 1.2.10v1.2.10Mark Adler2017-01-0225-54/+58
|
* Fix compilation with --solo and --debug combined.Mark Adler2017-01-021-1/+1
| | | | | However this ends up not really being solo, since it has to include external libraries.
* Add warnings when compiling with assembler code.Mark Adler2017-01-022-1/+4
| | | | | | | There have been many reports of bugs in the assembler codes intended to speed up deflate and inflate. They are third-party contributions in contrib, and so are not supported by the zlib maintainers.
* Remove files to be installed before copying them in Makefile.in.Mark Adler2017-01-021-0/+5
|
* Fix bug in gzwrite.c that produced corrupt gzip files.Mark Adler2017-01-021-0/+1
|
* Fix bug in deflate_stored() for zero-length input.Mark Adler2017-01-021-18/+19
|
* Minor edits and clarifications of comments.Mark Adler2017-01-011-7/+8
|
* Avoid warnings on snprintf() return value.Mark Adler2017-01-011-4/+4
|
* Change version number to zlib 1.2.9.1.Mark Adler2017-01-0125-62/+65
|
* Fix some stray 1.2.8.1 version numbers.Mark Adler2017-01-012-4/+4
|
* zlib 1.2.9v1.2.9Mark Adler2016-12-3155-580/+777
|
* Update Visual Studio project files (AraHaan).Mark Adler2016-12-3131-13/+5706
|
* Add crc32_z() and adler32_z() functions with size_t lengths.Mark Adler2016-12-313-8/+38
|
* Make z_size_t unsigned long for non-standard C.Mark Adler2016-12-313-9/+21
| | | | Also declare z_size_t when compiling solo.
* Avoid the need for ssize_t.Mark Adler2016-12-316-67/+19
| | | | | | | | Limit read() and write() requests to sizes that fit in an int. This allows storing the return value in an int, and avoiding the need to use or construct an ssize_t type. This is required for Microsoft C, whose _read and _write functions take an unsigned request and return an int.
* Use a uniform approach for the largest value of an unsigned type.Mark Adler2016-12-313-3/+3
|
* Use intptr_t for z_ssize_t on MSVC.Mark Adler2016-12-303-3/+18
|
* Avoid some random compiler warnings on various platforms.Mark Adler2016-12-306-12/+14
|
* Allow minigzip to compile when testing with ./configure --solo.Mark Adler2016-12-301-1/+1
|
* Replace as400 with os400 for OS/400 support (Monnerat).Mark Adler2016-12-307-444/+518
|
* Detect clang in cc version.Mark Adler2016-12-301-0/+1
|
* Fix init macros to use z_ prefix when requested.Mark Adler2016-12-304-16/+47
|
* Fix character encoding and link in contrib README.Mark Adler2016-12-301-2/+2
|
* Use snprintf() for later versions of Microsoft C.Mark Adler2016-12-302-5/+4
|
* Add deflateGetDictionary() function.Mark Adler2016-12-302-0/+43
| | | | | Per request, but its utility is likely to be very limited. See the comments in zlib.h.
* No need to check for NULL argument to free().Mark Adler2016-12-301-4/+2
|
* Add gzfwrite(), duplicating the interface of fwrite().Mark Adler2016-12-042-40/+112
|
* Add gzfread(), duplicating the interface of fread().Mark Adler2016-12-042-40/+126
|
* Fix compile option for when z_size_t needs to be a long long.Mark Adler2016-12-044-1/+7
|
* Create z_size_t and z_ssize_t types.Mark Adler2016-12-048-17/+144
| | | | | | Normally these are set to size_t and ssize_t. But if they do not exist, then they are set to the smallest integer type that can contain a pointer. size_t is unsigned and ssize_t is signed.
* Don't need to emit an empty fixed block when changing parameters.Mark Adler2016-12-041-1/+1
| | | | | | gzsetparams() was using Z_PARTIAL_FLUSH when it could use Z_BLOCK instead. This commit uses Z_BLOCK, which avoids emitting an unnecessary ten bits into the stream.
* Clean up gz* function return values.Mark Adler2016-12-043-34/+37
| | | | | | | In some cases the return values did not match the documentation, or the documentation did not document all of the return values. gzprintf() now consistently returns negative values on error, which matches the behavior of the stdio fprintf() function.
* Speed up deflation for level 0 (storing).Mark Adler2016-12-041-78/+215
| | | | | | | | | | | | | | | | | | The previous code slid the window and the hash table and copied every input byte three times in order to just write the data as stored blocks with no compression. This commit minimizes sliding and copying, especially for large input and output buffers. Level 0 compression is now more than 20 times faster than before the commit. Most of the speedup is due to deferring hash table slides until deflateParams() is called to change the compression level away from 0. More speedup is due to copying directly from next_in to next_out when the amounts of available input data and output space permit it, avoiding the intermediate pending buffer. Additionally, only the last 32K of the used input data is copied back to the sliding window when large input buffers are provided.
* Assure that deflateParams() will not switch functions mid-block.Mark Adler2016-12-042-22/+24
| | | | | | | This alters the specification in zlib.h, so that deflateParams() will not change any parameters if there is not enough output space in the event that a block is emitted in order to allow switching the compression function.
* Explicitly ignore a return value in gzwrite.c.Mark Adler2016-12-041-1/+1
|
* Increase verbosity required to warn about bit length overflow.Mark Adler2016-12-041-2/+2
| | | | | | | When debugging the Huffman coding would warn about resulting codes greater than 15 bits in length. This is handled properly, and is not uncommon. This increases the verbosity of the warning by one, so that it is not displayed by default.
* Add uncompress2() function, which returns the input size used.Mark Adler2016-12-042-18/+39
|
* Minor edits to the documentation in source file contents.Mark Adler2016-12-044-93/+109
|
* Fix bugs in creating a very large gzip header.Mark Adler2016-12-042-169/+191
|
* Add --debug (-d) option to ./configure to define ZLIB_DEBUG.Mark Adler2016-12-041-0/+6
|
* Use memcpy for stored blocks.Mark Adler2016-12-041-30/+7
| | | | | | | | | This speeds up level 0 by about a factor of three, as compared to the previous byte-at-a-time loop. We can do much better though. A later commit avoids this copy for level 0 with large buffers, instead copying directly from the input to the output. This commit still speeds up storing incompressible data found when compressing normally.
* Fix some typos.Mark Adler2016-10-3010-29/+29
|