summaryrefslogtreecommitdiff
path: root/zutil.c
AgeCommit message (Collapse)Author
2021-12-24Version 2.0.6Hans Kristian Rosbach
- Fix hangs on macOS #1031 - Fix minideflate write buffers being overwritten #1060 - Fix deflateBound and compressBound returning too small size estimates #1049 #1071 - Fix incorrect function declaration warning #1080 - Fix build problems when building outside of source dir #1049 - Fix build problems on arm2-7 #1030 - Fixed some compile warnings #1020 #1036 #1037 #1048 - Improved posix memalign support #888 - Improvements to testing #637 #1026 #1032 #1035 #1049 #1051 #1056 #1063 #1067 #1079 - Improvements for integration into other projects #1022 #1042 - Code style fixes #637 #1040 #1050 #1075
2021-12-24Added build system check for posix_memalign support.Nathan Moinvaziri
Co-authored-by: concatime <concatime@users.noreply@github.com> Co-authored-by: Mika Lindqvist <postmaster@raasu.org>
2021-06-25Version 2.0.5Hans Kristian Rosbach
- Fix inflate corruption on aarch64 #1008 - Fix MSVC warnings #1002 #1013 - Minor chunkset improvements #1000 #994 #1015 - Minor cleanup #997 - Add CI test for pigz on aarch64 #1004 - Cmake improvements #996
2021-06-21Added Z_UNUSED define for ignore unused variables.Nathan Moinvaziri
2021-06-11Version 2.0.4Hans Kristian Rosbach
- Fix inflate corruption #982 - Minor code cleanup #983 #984 - Fix mpicc compilation #959 - Fix build on NetBSD #964 - Fix build on OpenBSD #970 - Fix build on Cygwin #972 #974 - Fix linter warnings in configure #975 - Spelling fixes #961 - Improve unistd.h handling #960 - Remove stdarg.h detection #976 - CI/Test improvements #977 #981 #985 - Cmake improvements #980 #989
2021-05-13Version 2.0.3Hans Kristian Rosbach
- Include porting guide in release packages #917 - Documentation improvements #913 #949 - Added Windows ARM binaries in release packages #916 - Fix crash on ARMv7 #927 - Fix building on FreeBSD #921 - Fix building with musl on aarch64 #936 #952 - Fix ARM float-abi detection #918 - Fix cmake detection of risc-v architectures #942 - Minor buildsystem fixes #922 #924 #933 #938 #950 - Improve zlib-compat build #915 #944 - CI/Test improvements #926 #929 #927 #937 #939 #940
2021-03-23Version 2.0.2Hans Kristian Rosbach
2021-03-17Version 2.0.1 - HotfixHans Kristian Rosbach
2021-03-16Stable release 2.0.0Hans Kristian Rosbach
2021-01-29Version 2.0.0 Release Candidate 2Hans Kristian Rosbach
2021-01-11Version 2.0.0 Release Candidate 1Hans Kristian Rosbach
2020-09-16Optionally include gzguts.h with WITH_GZFILEOP flag.Nathan Moinvaziri
2020-09-14Simplify zng_calloc and zng_cfree.Hans Kristian Rosbach
Make new static functions zng_alloc and zng_free available to other parts of the code. Always request aligned allocations, even if UNALIGNED_OK is set.
2020-09-13Remove some of the references to the unreleased zlib 1.2.12Hans Kristian Rosbach
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-08-02Fixed extra symbols added to ABI when zlib-compat specified.Nathan Moinvaziri
2020-05-25Remove support for DYNAMIC_CRC_TABLE which was broken.Nathan Moinvaziri
2020-03-17Remove cvs keywordsPavel P
2020-02-07Support aligned alloc/free functions for Windows and define them only if ↵Nathan Moinvaziri
MZ_ZALLOC is not defined.
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.
2019-08-08Remove BUILDFIXED and MAKEFIXED. (#375)Hans Kristian Rosbach
Remove BUILDFIXED support. Split out MAKEFIXED into a separate 'makefixed' util that is easy to use if we want to regenerate/verify inffixed.h.
2019-07-18Add zng_ prefix to internal functions to avoid linking conflicts with zlib. ↵Nathan Moinvaziri
(#363)
2019-01-09Fix compilation with --solo and --debug combined.Mark Adler
However this ends up not really being solo, since it has to include external libraries.
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-02-22Align in 16-byte boundary when UNALIGNED_OK is undefined.Mika Lindqvist
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-13zlib 1.2.11Mark Adler
2017-02-09zlib 1.2.9Mark Adler
2017-02-06Avoid use of DEBUG macro -- change to ZLIB_DEBUG.Mark Adler
2017-01-31Clean up type conversions.Mark Adler
Based on upstream 7096424f23df1b1813237fb5f8bc8f34cfcedd0c, but modified heavily to match zlib-ng.
2015-12-14Type cleanup.Mika Lindqvist
2015-11-03Use a consistent and more modern approach to not use a parameter.Mark Adler
A remarkably creative and diverse set of approaches to letting the compiler know that opaque was being used when it wasn't is changed by this commit to the more standard (void)opaque. Conflicts: zutil.c
2015-05-23Update remaining function prototypes to ANSI C standardHans Kristian Rosbach
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
2015-05-12Remove support for compiling with Z_SOLO.Hans Kristian Rosbach
Make compiling without gzip file operation support the default (define WITH_GZFILEOP or use --zlib-compat to enable them). Add initial support for compiling in a zlib-compatible mode, this currently only enables gzip file operations and sets the ZLIB_COMPAT flag. Conflicts: test/minigzip.c
2015-04-26Cleanup: Replace 'voidp' with 'void *'Hans Kristian Rosbach
2015-04-26Drop workarounds for WinCE and InterixHans Kristian Rosbach
2015-04-10Actually commit the updated README file.hansr
Update version identifier strings to reflect fork status. Add zlib-ng identifier string. Remove zlib2ansi script.
2014-11-05Remove support for ASMV and ASMINF defines and clean up match.c handling.hansr
This makes it easier to implement support for ASM replacements using configure parameters if needed later. Also since zlib-ng uses compiler intrinsics, this needed a cleanup in any case.
2014-10-18Rewrite K&R-style function prototypes to ANSI-C-style.hansr
Only internal functions, no exported functions in this commit.
2014-10-18Remove FAR variants of voidpfhansr
And a few Bytef leftovers from test/example.c
2014-10-15Remove more workarounds for really old compilershansr
2014-10-13Remove support for compiling with -DFASTESThansr
2014-10-12Remove workarounds for non-ANSI-C compatible compilers (Part 1)hansr
2014-10-09Remove code related to older operating systemshansr
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.