summaryrefslogtreecommitdiff
path: root/zlib-ng.h
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-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-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-16Spelling fixesGreg Sjaardema
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-05-08upgrade links to HTTPSViktor Szakats
http://infozip.sourceforge.net/ is sadly not having HTTPS access enabled. Shoutout to somebody with admin access for this project: It would be nice to enable it and thus allowing secure access to these pages via https://infozip.sourceforge.io/ . The option has been there for a while now: https://sourceforge.net/blog/introducing-https-for-project-websites/ also: - follow permanent redirects - add ending slashes
2021-03-23Version 2.0.2Hans Kristian Rosbach
2021-03-18Added preprocessor error guards to ensure proper library usage.Nathan Moinvaziri
2021-03-17Version 2.0.1 - HotfixHans Kristian Rosbach
2021-03-16Stable release 2.0.0Hans Kristian Rosbach
2021-02-03Explicitly note that the 32-bit check values are 32 bits.Mark Adler
2021-02-03Clarify gz* function interfaces, referring to parameter names.Mark Adler
2021-01-29Version 2.0.0 Release Candidate 2Hans Kristian Rosbach
2021-01-11Version 2.0.0 Release Candidate 1Hans Kristian Rosbach
2020-08-31Rename ZEXPORT and ZEXTERN for consistency.Nathan Moinvaziri
2020-06-09Use standard int types in zlib-ng api.Nathan Moinvaziri
2020-06-08For gzseek, gzoffset, gzopen, adler32_combine, crc32_combine and ↵Nathan Moinvaziri
crc32_combine_gen, export 32-bit and 64-bit versions for zlib-compatible api and only 64-bit version (without 64 suffix) for zlib-ng native api.
2020-06-08Clean up windows defines, use _WIN32Pavel P
+ replaced WIN32 with _WIN32 + removed unused WINDOWS/_WINDOWS defines + no need to test for __MINGW__, as _WIN32 is also 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-10-22zlib-ng.h syntax cleanupHans Kristian Rosbach
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 "reproducible" deflate parameterIlya Leoshkevich
IBM Z DEFLATE CONVERSION CALL may produce different (but valid) compressed data for the same uncompressed data. This behavior might be unacceptable for certain use cases (e.g. reproducible builds). This patch introduces Z_DEFLATE_REPRODUCIBLE parameter, which can be used to indicate that this is the case, and turn off IBM Z DEFLATE CONVERSION CALL.
2019-07-18Add two new public zng_deflate{Set,Get}Params() functionsIlya Leoshkevich
These functions allow zlib-ng callers to modify and query the compression parameters in a future-proof way. When the caller requests a parameter, which is not supported by the current zlib-ng version, this situation is detected and reported to the caller. The caller may modify or query multiple parameters at once. Currently only "level" and "strategy" parameters are supported. It is planned to add a "reproducible" parameter, which would affect whether IBM Z DEFLATE CONVERSION CALL is used. Passing enum and void * buffer was chosen over passing strings, because of simplicity for the caller. If strings were used, C callers would have to call snprintf() and strtoul() for setting and getting integer-valued parameters respectively, which is quite tedious. Bulk updates were chosen over updating individual parameters separately, because it might make sense to apply some parameters atomically, e.g. level and strategy. The new functions are defined only for zlib-ng, but not compat zlib.
2019-01-15Permit a deflateParams() parameter change as soon as possible.Mark Adler
This commit allows a parameter change even if the input data has not all been compressed and copied to the application output buffer, so long as all of the input data has been compressed to the internal pending output buffer. This also allows an immediate deflateParams change so long as there have been no deflate calls since initialization or reset.
2018-12-21Cygwin does not have _wopen(), so do not create gzopen_w() there.Mark Adler
2018-12-13Emphasize the need to continue decompressing gzip members.Sebastian Pop
Also in zlib-ng.h.
2018-12-13Correct the initialization requirements for deflateInit2().Mark Adler
2018-12-08Add crc32_combine_gen() and crc32_combine_op() for fast combines.Mark Adler
When the same len2 is used repeatedly, it is faster to use crc32_combine_gen() to generate an operator, that is then used to combine CRCs with crc32_combine_op().
2018-09-17Fix ZLIB_COMPAT=OFF and WITH_GZFILEOP=ON compilation failure.Hans Kristian Rosbach
Also add this combination to travis testing. Remove --native testing from travis, since they somehow make this fail very often, probably due to caching or running the executables on a different platform than the compiler thinks it is running on.
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.