summaryrefslogtreecommitdiff
path: root/gzwrite.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Fix bug in gzclose_w() when gzwrite() fails to allocate memory.Mark Adler2012-03-031-6/+8
|
* Cast to char * in gzprintf to avoid warnings [Zinser].Mark Adler2012-03-021-11/+12
|
* Put gzflags() functionality back in zutil.c.Mark Adler2012-02-011-31/+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.
* zlib 1.2.6v1.2.6Mark Adler2012-01-291-1/+1
|
* Have gzputc return the character written instead of the argument.Mark Adler2012-01-291-2/+2
| | | | | | | | When successful, gzputc would return the second argument. If the second argument were -1, gzputc would return -1 instead of the character written, which was 255. However the -1 would not be distinguishable from an error. Now gzputc returns 255 in that case.
* Avoid use of Z_BUF_ERROR in gz* functions except for premature EOF.Mark Adler2011-12-131-1/+1
| | | | | | | Z_BUF_ERROR was also being used for an unsuccessful gzungetc and for buffer lengths that didn't fit in an int. Those uses were changed to Z_DATA_ERROR in order to assure that Z_BUF_ERROR occurs only when a premature end of input occurs, indicating that gzclearerr() can be used.
* Fix gzwrite.c to accommodate reduced memory zlib compilation.Mark Adler2011-12-101-1/+1
| | | | | | gzwrite.c had hard-coded parameters to deflateInit2() which could contradict compile-time options for the use of less memory and fewer code bits. This patch suggested by Karsten Saunte fixes that.
* Add a transparent write mode to gzopen() when 'T' is in the mode.Mark Adler2011-10-021-24/+48
|
* Merge vestigial vsnprintf determination from zutil.h to gzguts.h.Mark Adler2011-10-021-0/+31
| | | | | | | | | 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-5/+8
|
* Change gzgetc() to a macro for speed (~40% speedup in testing).Mark Adler2011-09-261-10/+10
|
* zlib 1.2.5.1v1.2.5.1Mark Adler2011-09-111-3/+7
|
* zlib 1.2.4-pre2v1.2.4-pre2Mark Adler2011-09-091-1/+1
|
* zlib 1.2.4-pre1v1.2.4-pre1Mark Adler2011-09-091-1/+2
|
* zlib 1.2.3.9v1.2.3.9Mark Adler2011-09-091-6/+2
|
* zlib 1.2.3.8v1.2.3.8Mark Adler2011-09-091-7/+10
|
* zlib 1.2.3.7v1.2.3.7Mark Adler2011-09-091-14/+18
|
* zlib 1.2.3.6v1.2.3.6Mark Adler2011-09-091-19/+17
|
* zlib 1.2.3.5v1.2.3.5Mark Adler2011-09-091-0/+529