summaryrefslogtreecommitdiff
path: root/zlib.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* zlib 1.2.7.2v1.2.7.2Mark Adler2013-04-131-1/+1
|
* Change version number to 1.2.7.2.Mark Adler2013-04-131-4/+4
|
* zlib 1.2.7.1v1.2.7.1Mark Adler2013-03-241-3/+3
|
* Clean up the addition of gzvprintf.Mark Adler2013-03-231-2/+3
|
* Clean up the addition of inflateGetDictionary.Mark Adler2013-03-231-1/+1
|
* Add gzvprintf() as an undocumented function in zlib.Mark Adler2013-03-221-0/+6
| | | | The function is only available if stdarg.h is available.
* Update inflateBack() comments, since inflate() can be faster.Mark Adler2013-02-231-5/+6
|
* Clean up the usage of z_const and respect const usage within zlib.Mark Adler2012-08-131-1/+2
| | | | | | | | | 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/+15
|
* Change version number to 1.2.7.1.Mark Adler2012-05-021-4/+4
|
* zlib 1.2.7v1.2.7Mark Adler2012-05-021-2/+2
|
* Fix type mismatch between get_crc_table() and crc_table.Mark Adler2012-04-291-1/+1
| | | | | | | | | | | | | crc_table is made using a four-byte integer (when that can be determined). However get_crc_table() returned a pointer to an unsigned long, which could be eight bytes. This fixes that by creating a new z_crc_t type for the crc_table. This type is also used for the BYFOUR crc calculations that depend on a four-byte type. The four-byte type can now be determined by ./configure, which also solves a problem where ./configure --solo would never use BYFOUR. No the Z_U4 #define indicates that four- byte integer was found either by ./configure or by zconf.h.
* Fix gzopen_w() type and add #include for the type.Mark Adler2012-03-171-1/+1
|
* Add gzopen_w() in Windows for wide character path names.Mark Adler2012-03-161-0/+4
|
* Improve inflate() documentation on the use of Z_FINISH.Mark Adler2012-03-141-8/+11
|
* Allow the use of -Wundef when compiling or using zlib.Mark Adler2012-03-131-3/+3
|
* Add "x" (O_EXCL) and "e" (O_CLOEXEC) modes support to gzopen().Mark Adler2012-03-031-1/+4
|
* Restore gzgetc_ for backward compatibility with 1.2.6.Mark Adler2012-02-181-0/+1
|
* Change version number to 1.2.7.Mark Adler2012-02-121-5/+5
|
* zlib 1.2.6.1v1.2.6.1Mark Adler2012-02-121-2/+2
|
* Fix minor typo in zlib.h comments [RzeĊ›niowiecki].Mark Adler2012-02-111-3/+2
|
* Remove unnecessary gzgetc_ function.Mark Adler2012-02-101-3/+2
|
* Put gzflags() functionality back in zutil.c.Mark Adler2012-02-011-3/+0
| | | | | | | | | | gzflags() was put in gzwrite.c in order to be compiled exactly the same as gzprintf(), so that it was guaranteed to return the correct information. However that causes a static linkage to zlib to bring in many routines that are often not used. All that is required to duplicate the compilation environment of gzprintf() is to include gzguts.h. So that is now done in zutil.c to assure that the correct flags are returned.
* Fix problem with ./configure --prefix and gzgetc macro.Mark Adler2012-01-301-2/+8
|
* Change version number to 1.2.6.1.Mark Adler2012-01-291-4/+4
|
* zlib 1.2.6v1.2.6Mark Adler2012-01-291-2/+2
|
* 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.