aboutsummaryrefslogtreecommitdiff
path: root/old (unfollow)
Commit message (Collapse)AuthorFilesLines
2017-02-15Fix CLEAR_HASH macro to be usable as a single statement.Mark Adler1-2/+5
As it is used in deflateParams().
2017-02-15Fix bug when window full in deflate_stored().Mark Adler1-1/+1
2017-02-15Limit hash table inserts after switch from stored deflate.Mark Adler1-1/+9
This limits hash table inserts to the available data in the window and to the sliding window size in deflate_stored(). The hash table inserts are deferred until deflateParams() switches to a non-zero compression level.
2017-02-15Permit a deflateParams() parameter change as soon as possible.Mark Adler2-8/+9
This commit allows a parameter change even if the input data has not all been compressed and copied to the application output buffer, so long as all of the input data has been compressed to the internal pending output buffer. This also allows an immediate deflateParams change so long as there have been no deflate calls since initialization or reset.
2017-01-16Cygwin does not have _wopen(), so do not create gzopen_w() there.Mark Adler2-2/+2
2017-01-15Change version number to 1.2.11.1.Mark Adler25-48/+51
2017-01-15zlib 1.2.11v1.2.11Mark Adler29-54/+58
2017-01-15Permit immediate deflateParams changes before any deflate input.Mark Adler2-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.
2017-01-15Update high water mark in deflate_stored.Mark Adler1-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 ...
2017-01-15Update vestigial comment from very old Info-ZIP deflate.Mark Adler1-2/+2
2017-01-15Fix deflate stored bug when pulling last block from window.Mark Adler1-5/+5
And some cosmetic cleanups.
2017-01-15Update location of Visual Studio project files.Mark Adler1-1/+1
2017-01-15Delete user-specific Visual Studio project files.Mark Adler6-24/+0
2017-01-15Change version number to 1.2.10.1.Mark Adler27-53/+53
2017-01-02zlib 1.2.10v1.2.10Mark Adler25-54/+58
2017-01-02Fix compilation with --solo and --debug combined.Mark Adler1-1/+1
However this ends up not really being solo, since it has to include external libraries.
2017-01-02Add warnings when compiling with assembler code.Mark Adler2-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.
2017-01-02Remove files to be installed before copying them in Makefile.in.Mark Adler1-0/+5
2017-01-02Fix bug in gzwrite.c that produced corrupt gzip files.Mark Adler1-0/+1
2017-01-02Fix bug in deflate_stored() for zero-length input.Mark Adler1-18/+19
2017-01-01Minor edits and clarifications of comments.Mark Adler1-7/+8
2017-01-01Avoid warnings on snprintf() return value.Mark Adler1-4/+4
2017-01-01Change version number to zlib 1.2.9.1.Mark Adler25-62/+65
2017-01-01Fix some stray 1.2.8.1 version numbers.Mark Adler2-4/+4
2016-12-31zlib 1.2.9v1.2.9Mark Adler55-580/+777
2016-12-31Update Visual Studio project files (AraHaan).Mark Adler31-13/+5706
2016-12-31Add crc32_z() and adler32_z() functions with size_t lengths.Mark Adler3-8/+38
2016-12-31Make z_size_t unsigned long for non-standard C.Mark Adler3-9/+21
Also declare z_size_t when compiling solo.
2016-12-31Avoid the need for ssize_t.Mark Adler6-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.
2016-12-31Use a uniform approach for the largest value of an unsigned type.Mark Adler3-3/+3
2016-12-30Use intptr_t for z_ssize_t on MSVC.Mark Adler3-3/+18
2016-12-30Avoid some random compiler warnings on various platforms.Mark Adler6-12/+14
2016-12-30Allow minigzip to compile when testing with ./configure --solo.Mark Adler1-1/+1
2016-12-30Replace as400 with os400 for OS/400 support (Monnerat).Mark Adler7-444/+518
2016-12-30Detect clang in cc version.Mark Adler1-0/+1
2016-12-30Fix init macros to use z_ prefix when requested.Mark Adler4-16/+47
2016-12-30Fix character encoding and link in contrib README.Mark Adler1-2/+2
2016-12-30Use snprintf() for later versions of Microsoft C.Mark Adler2-5/+4
2016-12-30Add deflateGetDictionary() function.Mark Adler2-0/+43
Per request, but its utility is likely to be very limited. See the comments in zlib.h.
2016-12-30No need to check for NULL argument to free().Mark Adler1-4/+2
2016-12-04Add gzfwrite(), duplicating the interface of fwrite().Mark Adler2-40/+112
2016-12-04Add gzfread(), duplicating the interface of fread().Mark Adler2-40/+126
2016-12-04Fix compile option for when z_size_t needs to be a long long.Mark Adler4-1/+7
2016-12-04Create z_size_t and z_ssize_t types.Mark Adler8-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.
2016-12-04Don't need to emit an empty fixed block when changing parameters.Mark Adler1-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.
2016-12-04Clean up gz* function return values.Mark Adler3-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.
2016-12-04Speed up deflation for level 0 (storing).Mark Adler1-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.
2016-12-04Assure that deflateParams() will not switch functions mid-block.Mark Adler2-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.
2016-12-04Explicitly ignore a return value in gzwrite.c.Mark Adler1-1/+1
2016-12-04Increase verbosity required to warn about bit length overflow.Mark Adler1-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.