summaryrefslogtreecommitdiff
path: root/uncompr.c
AgeCommit message (Collapse)Author
2020-08-31Rename ZEXPORT and ZEXTERN for consistency.Nathan Moinvaziri
2020-08-31Rename ZLIB_INTERNAL to Z_INTERNAL for consistency.Nathan Moinvaziri
2020-08-23Reintroduce support for ZLIB_CONST in compat mode. (#704)Mika Lindqvist
* Reintroduce support for ZLIB_CONST in compat mode.
2020-03-17Remove cvs keywordsPavel P
2020-02-07Fixed formatting, 4 spaces for code intent, 2 spaces for preprocessor ↵Nathan Moinvaziri
indent, initial function brace on the same line as definition, removed extraneous spaces and new lines.
2018-03-22Move private defines from zconf.h and zconf-ng.h to zbuild.hMika Lindqvist
* move definition of z_size_t to zbuild.h
2018-03-22[MSVC] Fix size_t/ssize_t when using ZLIB_COMPAT. (#161)Mika Lindqvist
* zconf.h.in wasn't including Windows.h, that is correct header to include definitions from BaseTsd.h, and such missing required type definition for ssize_t when compiling using MS Visual C++ * Various places need implicit casting to z_size_t to get around compatibility issues, this will truncate the result when ZLIB_COMPAT is defined, calling code should check for truncation. * Add ZLIB_COMPAT flag to nmake Makefile and use it to determine correct filenames instead of WITH_GZFILEOP
2018-02-16[compat] Use unsigned long for size parameters of ↵Mika Lindqvist
compress/compressBound/uncompress
2018-01-31Adapt code to support PREFIX macros and update build scriptsMika Lindqvist
2018-01-31Add function prefix (zng_) to all exported functions to allow zlib-ngHans Kristian Rosbach
to co-exist in an application that has been linked to something that depends on stock zlib. Previously, that would cause random problems since there is no way to guarantee what zlib version is being used for each dynamically linked function. Add the corresponding zlib-ng.h. Tests, example and minigzip will not compile before they have been adapted to use the correct functions as well. Either duplicate them, so we have minigzip-ng.c for example, or add compile-time detection in the source code.
2017-02-07Use a uniform approach for the largest value of an unsigned type.Mark Adler
2017-02-02Add uncompress2() function, which returns the input size used.Mark Adler
2017-01-31Replace Z_NULL with NULL. Fix incorrect uses of NULL/Z_NULL.Mika Lindqvist
2015-12-14Use size_t for total_in and total_out.Mika Lindqvist
2015-12-14Type cleanup.Mika Lindqvist
2015-11-25Type cleanup.Mika Lindqvist
2015-11-03Fix merge errors.Hans Kristian Rosbach
2015-11-03Do not initialize unsigned with -1 in compress.c uncompr.c.Mark Adler
Sun compiler complained. Use (unsigned)0 - 1 instead.
2015-11-03Fix uncompress() to work on lengths more than a maximum unsigned.Mark Adler
Conflicts: uncompr.c
2015-05-25Style cleanup for compress/uncompress and longest_match codeHans Kristian Rosbach
2015-05-23Cleanup user-defined types for 'unsigned char'Mika Lindqvist
* Change 'uch' to 'unsigned char' * Change 'Byte' to 'unsigned char'
2015-05-17Kill Byte and BytefDaniel Axtens
Signed-off-by: Daniel Axtens <dja@axtens.net> Conflicts: adler32.c compress.c deflate.c inflate.c match.c test/example.c uncompr.c zlib.h
2015-05-13z_const -> constDaniel Axtens
Signed-off-by: Daniel Axtens <dja@axtens.net> Conflicts: arch/x86/crc_folding.c crc32.c
2015-05-12Convert remaining K&R function declarations to ANSI-C declarations.Hans Kristian Rosbach
2014-10-16Remove FAR variants of variables ushf, schf, Posf, Bytef, charf,hansr
intf, uIntf and uLongf
2014-10-09Remove legacy 16-bit workaroundshansr
2012-08-13Clean up the usage of z_const and respect const usage within zlib.Mark Adler
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.
2011-09-09zlib 1.2.3.6Mark Adler
2011-09-09zlib 1.2.0.5Mark Adler
2011-09-09zlib 1.2.0.2Mark Adler
2011-09-09zlib 1.2.0Mark Adler
2011-09-09zlib 1.1.4Mark Adler
2011-09-09zlib 1.0.9Mark Adler
2011-09-09zlib 1.0.7Mark Adler
2011-09-09zlib 1.0.1Mark Adler
2011-09-09zlib 1.0-preMark Adler
2011-09-09zlib 0.99Mark Adler
2011-09-09zlib 0.94Mark Adler
2011-09-09zlib 0.92Mark Adler
2011-09-09zlib 0.71Mark Adler