test/example.c

Branch


Log

Author Commit Date CI Message
Xin LI bd9c329c 2023-09-03T13:10:10 Make internal functions static in the test code. To avoid warnings when building with -Wmissing-prototypes.
Mark Adler b8a8373e 2023-04-17T20:47:42 Fix test/example.c to work with FORCE_STORED.
Mark Adler e9d5486e 2023-04-14T01:42:03 Remove K&R function definitions from zlib. C2X has removed K&R definitions from the C function syntax. Though the standard has not yet been approved, some high-profile compilers are now issuing warnings when such definitions are encountered.
Mark Adler 441a2ac6 2022-05-26T08:47:51 Have build test report library version if it doesn't match zlib.h.
Mark Adler 0d36ec47 2019-01-02T18:10:40 Don't bother computing check value after successful inflateSync(). inflateSync() is used to skip invalid deflate data, which means that the check value that was being computed is no longer useful. This commit turns off the check value computation, and furthermore allows a successful return if the compressed data terminated in a graceful manner. This commit also fixes a bug in the case that inflateSync() is used before a header is ever processed. In that case, there is no knowledge of a trailer, so the remainder is treated as raw.
Mark Adler 2fa463ba 2016-12-31T11:41:31 zlib 1.2.9
Mark Adler 8f147c3d 2016-12-30T22:05:05 Avoid some random compiler warnings on various platforms.
Mark Adler 7d6956b6 2016-10-14T13:10:54 Make globals in examples local to compilation unit.
Mark Adler 283520ba 2014-07-02T16:34:22 Fix bug in test/example.c where error code not saved.
Mark Adler 62d6112a 2012-08-12T18:08:52 Clean up the usage of z_const and respect const usage within zlib. 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.
Mark Adler 1b57de3a 2011-11-21T18:56:02 Move example.c and minigzip.c to test/.