Commit Graph

12 Commits

Author SHA1 Message Date
Dimitri Papadopoulos
3605d984d8 Avoid unnecessary line continuations 2023-08-07 08:22:56 +02:00
Nathan Moinvaziri
b7192b694c Move _POSIX_C_SOURCE define before first stdlib.h include in zbuild.h for posix_memalign. 2022-01-29 17:03:22 +01:00
Hans Kristian Rosbach
70f608c79c Fix deflateBound and compressBound returning very small size estimates.
Remove workaround in switchlevels.c, so we do actual testing of this.
Use named defines instead of magic numbers where we can.
2021-12-20 14:49:27 +01:00
Mika Lindqvist
414ec0f00d Fix build under Cygwin. 2021-05-27 12:39:23 +02:00
Ilya Leoshkevich
f5a78259ce Fix switchlevels calling deflateParams() with a stale buffer
Fixes: #776
2020-10-09 11:37:53 +02:00
Nathan Moinvaziri
88cdf333d7 Fixed defined WIN32 in switchlevels should be _WIN32. 2020-06-09 08:20:09 +02:00
Nathan Moinvaziri
04a98daeb2 Added help message to switchlevels. 2020-06-08 14:50:46 +02:00
Nathan Moinvaziri
694cd76c47 Added ability to set window bits for switchlevels.
Initialize deflateInit with first level which is necessary for deflate_quick testing where initial window size is set to 8k.
2020-05-30 21:21:23 +02:00
Nathan Moinvaziri
68bdf0cb7c Fixed formatting for readability in switchlevels. 2020-05-25 16:13:36 +02:00
Nathan Moinvaziri
411fc07589 Set binary mode for stdin and stdout in switchlevels. 2020-05-25 16:13:36 +02:00
Nathan Moinvaziri
e0a711cdde Fixed formatting, 4 spaces for code intent, 2 spaces for preprocessor indent, initial function brace on the same line as definition, removed extraneous spaces and new lines. 2020-02-07 10:44:20 +01:00
Ilya Leoshkevich
bca48626c5 longest_match: avoid using negative indices
Fixes #364
2019-07-18 11:22:52 +02:00