aboutsummaryrefslogtreecommitdiff
path: root/zlib.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Change version number to 1.2.6.Mark Adler2012-01-161-5/+5
|
* zlib 1.2.5.3v1.2.5.3Mark Adler2012-01-151-3/+3
|
* Allow deflatePrime() to insert bits in the middle of a stream.Mark Adler2012-01-071-2/+3
| | | | | This allows the insertion of multiple empty static blocks for the purpose of efficiently bringing a stream to a byte boundary.
* Permit Z_NULL arguments to deflatePending.Mark Adler2011-12-291-1/+2
| | | | | This avoids having to create useless variables for return values that aren't needed.
* Restore gzgetc function for binary compatibility.Mark Adler2011-12-181-1/+1
| | | | Newly compiled applications will use the gzgetc macro.
* Change version numbers to 1.2.5.3.Mark Adler2011-12-181-4/+4
|
* zlib 1.2.5.2v1.2.5.2Mark Adler2011-12-181-2/+2
|
* Document gzread() capability to read concurrently written files.Mark Adler2011-12-141-1/+14
| | | | | | Also since gzread() will no longer return an error for an incomplete gzip file, have gzclose() return an error if the last gzread() ended in the middle of a gzip stream.
* Have inflate() with Z_FINISH avoid the allocation of a window.Mark Adler2011-12-101-9/+14
| | | | | | | | | 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-10/+17
| | | | | | | | | | | | | | | | | | | 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.
* Change ON macro to Z_ARG to avoid application conflicts.Mark Adler2011-11-131-1/+1
| | | | | | | Using "ON" was a dumb idea, since it is common to have macros with names like ON and OFF. In fact, defining the OF macro back in 1995 was a bad idea, but now we're stuck with it. Attempts to rename OF to something else breaks many applications.
* Note behavior of uncompress() to provide as much data as it can.Mark Adler2011-10-231-1/+3
|
* Add comment to gzdopen() in zlib.h to use dup() when using fileno().Mark Adler2011-10-201-1/+5
| | | | | | | | | | A problem surfaced in a multi-threaded application where fileno() was used to get a file descriptor from an fopen(), which was then fed to gzdopen(). The problem occurred when the gzclose() followed by the fclose() tried to close the same file descriptor twice. If fclose() were not done, there would be a memory leak. The only way out is to dup() the file descriptor so that gzclose() closes the duplicated file descriptor, and fclose() closes the original file descriptor.
* Add #define ZLIB_CONST option to use const in the z_stream interface.Mark Adler2011-10-181-2/+2
| | | | | | | | | | This permits compilers to check for the proper treatment of next_in and msg in the z_stream structure. This is an option instead of the default in order to preserve backward compatibility. Some applications make use of the z_stream structure outside of zlib, and perform operations such as free(strm->next_in), which would not be permitted when next_in is const. The #define ZLIB_CONST needs to precede the #include "zlib.h">, in order to make next_in and msg const pointers in the z_stream type.
* Add undocumented inflateResetKeep() function for CAB file decoding.Mark Adler2011-10-071-0/+1
| | | | | | | | 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-2/+14
| | | | | | | | 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.
* Add a transparent write mode to gzopen() when 'T' is in the mode.Mark Adler2011-10-021-7/+19
|
* Correct documentation of gzdirect() since junk at end now ignored.Mark Adler2011-10-021-3/+1
|
* Clarify how gzopen() appends in zlib.h comments.Mark Adler2011-10-021-0/+7
|
* Merge vestigial vsnprintf determination from zutil.h to gzguts.h.Mark Adler2011-10-021-0/+1
| | | | | | | | | This also moves some of the same from zconf.h to gzguts.h. A new function, gzflags(), was created to pass the compilation flags related to vsnprintf usage back to zlibCompileFlags() in zutil.c. In the process, various compiler configuration files were updated to include gzflags(), as well as the new gzgetc_() function added when the gzgetc() macro was introduced in a previous patch.
* Fix gzclose() to return the actual error last encountered.Mark Adler2011-09-301-1/+1
|
* Change gzgetc() to a macro for speed (~40% speedup in testing).Mark Adler2011-09-261-3/+22
|
* Change gzread() and related to ignore junk after gzip streams.Mark Adler2011-09-241-6/+6
| | | | | | | | | | Previously the new gz* functions (introduced in 1.2.4) would read and return raw data after the last gzip stream. This is inconsistent with the behavior of gzip and the previous versions of zlib. Now when one or more gzip streams have been decoded from the file, which is then followed by data that is not a gzip stream (as detemined by not finding the magic header), then that subsequent trailing garbage is ignored, and no error is returned.
* Change version numbers to 1.2.5.2 and release datesMark Adler2011-09-111-4/+4
| | | | | | Also added "-motley" to ZLIB_VERSION in zlib.h, so that versions in-between 1.2.5.1 and 1.2.5.2 that are pulled down from github can be identified as such if bugs are reported on them.
* zlib 1.2.5.1v1.2.5.1Mark Adler2011-09-111-37/+73
|
* zlib 1.2.5v1.2.5Mark Adler2011-09-091-5/+5
|
* zlib 1.2.4.5v1.2.4.5Mark Adler2011-09-091-4/+4
|
* zlib 1.2.4.4v1.2.4.4Mark Adler2011-09-091-4/+4
|
* zlib 1.2.4.3v1.2.4.3Mark Adler2011-09-091-18/+26
|
* zlib 1.2.4.2v1.2.4.2Mark Adler2011-09-091-6/+6
|
* zlib 1.2.4.1v1.2.4.1Mark Adler2011-09-091-7/+7
|
* zlib 1.2.4v1.2.4Mark Adler2011-09-091-1/+1
|
* zlib 1.2.4-pre2v1.2.4-pre2Mark Adler2011-09-091-1/+1
|
* zlib 1.2.4-pre1v1.2.4-pre1Mark Adler2011-09-091-4/+5
|
* zlib 1.2.3.9v1.2.3.9Mark Adler2011-09-091-8/+14
|
* zlib 1.2.3.8v1.2.3.8Mark Adler2011-09-091-4/+4
|
* zlib 1.2.3.7v1.2.3.7Mark Adler2011-09-091-58/+94
|
* zlib 1.2.3.6v1.2.3.6Mark Adler2011-09-091-429/+458
|
* zlib 1.2.3.5v1.2.3.5Mark Adler2011-09-091-23/+76
|
* zlib 1.2.3.4v1.2.3.4Mark Adler2011-09-091-44/+125
|
* zlib 1.2.3.3v1.2.3.3Mark Adler2011-09-091-9/+36
|
* zlib 1.2.3.2v1.2.3.2Mark Adler2011-09-091-3/+3
|
* zlib 1.2.3.1v1.2.3.1Mark Adler2011-09-091-19/+34
|
* zlib 1.2.3v1.2.3Mark Adler2011-09-091-3/+3
|
* zlib 1.2.2.4v1.2.2.4Mark Adler2011-09-091-8/+24
|
* zlib 1.2.2.3v1.2.2.3Mark Adler2011-09-091-6/+31
|
* zlib 1.2.2.2v1.2.2.2Mark Adler2011-09-091-11/+14
|
* zlib 1.2.2.1v1.2.2.1Mark Adler2011-09-091-22/+135
|
* zlib 1.2.2v1.2.2Mark Adler2011-09-091-12/+12
|
* zlib 1.2.1.2v1.2.1.2Mark Adler2011-09-091-5/+5
|