summaryrefslogtreecommitdiff
path: root/inflate.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Clean up the usage of z_const and respect const usage within zlib.Mark Adler2012-08-131-24/+17
| | | | | | | | | This patch allows zlib to compile cleanly with the -Wcast-qual gcc warning enabled, but only if ZLIB_CONST is defined, which adds const to next_in and msg in z_stream and in the in_func prototype. A --const option is added to ./configure which adds -DZLIB_CONST to the compile flags, and adds -Wcast-qual to the compile flags when ZLIBGCCWARN is set in the environment.
* Add inflateGetDictionary() function.Mark Adler2012-05-261-0/+23
|
* zlib 1.2.6.1v1.2.6.1Mark Adler2012-02-121-1/+1
|
* Use optimized byte swap operations for Microsoft and GNU [Snyder].Mark Adler2012-02-111-7/+2
|
* Avoid the use of the Objective-C reserved name "id".Mark Adler2012-01-291-5/+5
|
* zlib 1.2.5.2v1.2.5.2Mark Adler2011-12-181-1/+1
|
* Do not set strm->adler when doing raw inflate.Mark Adler2011-12-101-1/+2
|
* Have inflate() with Z_FINISH avoid the allocation of a window.Mark Adler2011-12-101-1/+2
| | | | | | | | | inflate() avoided that allocation normally, until it was modified to update the window on a normal completion so that inflateResetKeep() could work. This patch restores that behavior, but only when Z_FINISH is used successfully to complete an inflation of a stream in a single call of inflate(). The comments in zlib.h have been updated accordingly.
* Enable dictionary setting in middle of stream, and keeping the dictionary.Mark Adler2011-12-081-13/+14
| | | | | | | | | | | | | | | | | | | This patch adds the deflateResetKeep() function to retain the sliding window for the next deflate operation, and fixes an inflateResetKeep() problem that came from inflate() not updating the window when the stream completed. This enables constructing and decompressing a series of concatenated deflate streams where each can depend on the history of uncompressed data that precedes it. This generalizes deflateSetDictionary() and inflateSetDictionary() to permit setting the dictionary in the middle of a stream for raw deflate and inflate. This in combination with the Keep functions enables a scheme for updating files block by block with the transmission of compressed data, where blocks are sent with deflateResetKeep() to retain history for better compression, and deflateSetDictionary() is used for blocks already present at the receiver to skip compression but insert that data in the history, again for better compression. The corresponding inflate calls are done on the receiver side.
* Remove code from inflate.c and infback.c that is impossible to execute.Mark Adler2011-11-271-1/+0
| | | | | | During coverage testing it was discovered that these two lines could never pull more bits, since the immediately preceding for loop assures that all of the code's bits are already pulled.
* Fix indentation of code in inflate.c.Mark Adler2011-10-091-1/+1
|
* Add undocumented inflateResetKeep() function for CAB file decoding.Mark Adler2011-10-071-4/+14
| | | | | | | | The Microsoft CAB file format compresses each block with completed deflate streams that depend on the sliding window history of the previous block in order to decode. inflateResetKeep() does what inflateReset() does, except the sliding window history from the previous inflate operation is retained.
* Add a ./config --solo option to make zlib subset with no libary useMark Adler2011-10-071-3/+12
| | | | | | | | A common request has been the ability to compile zlib to require no other libraries. This --solo option provides that ability. The price is that the gz*, compress*, and uncompress functions are eliminated, and that the user must provide memory allocation and free routines to deflate and inflate when initializing.
* Get inffixed.h and MAKEFIXED result to match.Mark Adler2011-10-051-2/+2
|
* zlib 1.2.3.7v1.2.3.7Mark Adler2011-09-091-2/+2
|
* zlib 1.2.3.6v1.2.3.6Mark Adler2011-09-091-2/+2
|
* zlib 1.2.3.5v1.2.3.5Mark Adler2011-09-091-17/+16
|
* zlib 1.2.3.4v1.2.3.4Mark Adler2011-09-091-28/+108
|
* zlib 1.2.3.3v1.2.3.3Mark Adler2011-09-091-45/+78
|
* zlib 1.2.2.4v1.2.2.4Mark Adler2011-09-091-6/+25
|
* zlib 1.2.2.3v1.2.2.3Mark Adler2011-09-091-4/+8
|
* zlib 1.2.2.2v1.2.2.2Mark Adler2011-09-091-3/+13
|
* zlib 1.2.2.1v1.2.2.1Mark Adler2011-09-091-7/+68
|
* zlib 1.2.2v1.2.2Mark Adler2011-09-091-2/+3
|
* zlib 1.2.1.2v1.2.1.2Mark Adler2011-09-091-0/+3
|
* zlib 1.2.0.8v1.2.0.8Mark Adler2011-09-091-3/+3
|
* zlib 1.2.0.5v1.2.0.5Mark Adler2011-09-091-5/+10
|
* zlib 1.2.0.4v1.2.0.4Mark Adler2011-09-091-8/+17
|
* zlib 1.2.0.2v1.2.0.2Mark Adler2011-09-091-27/+34
|
* zlib 1.2.0.1v1.2.0.1Mark Adler2011-09-091-2/+2
|
* zlib 1.2.0v1.2.0Mark Adler2011-09-091-329/+1212
|
* zlib 1.1.4v1.1.4Mark Adler2011-09-091-1/+1
|
* zlib 1.1.0v1.1.0Mark Adler2011-09-091-1/+3
|
* zlib 1.0.9v1.0.9Mark Adler2011-09-091-16/+16
|
* zlib 1.0.8v1.0.8Mark Adler2011-09-091-1/+2
|
* zlib 1.0.7v1.0.7Mark Adler2011-09-091-27/+45
|
* zlib 1.0.4v1.0.4Mark Adler2011-09-091-7/+8
|
* zlib 1.0.1v1.0.1Mark Adler2011-09-091-19/+77
|
* zlib 1.0-prev1.0-preMark Adler2011-09-091-76/+18
|
* zlib 0.99v0.99Mark Adler2011-09-091-20/+83
|
* zlib 0.94v0.94Mark Adler2011-09-091-3/+3
|
* zlib 0.92v0.92Mark Adler2011-09-091-40/+40
|
* zlib 0.91v0.91Mark Adler2011-09-091-3/+8
|
* zlib 0.9v0.9Mark Adler2011-09-091-74/+130
|
* zlib 0.8v0.8Mark Adler2011-09-091-22/+11
|
* zlib 0.79v0.79Mark Adler2011-09-091-23/+33
|
* zlib 0.71v0.71Mark Adler2011-09-091-0/+221