ChangeLog revision 92111
117651Speter
217651Speter		ChangeLog file for zlib
317651Speter
492111SgreenChanges in 1.1.4 (11 March 2002)
592111Sgreen- ZFREE was repeated on same allocation on some error conditions.
692111Sgreen  This creates a security problem described in
792111Sgreen  http://www.zlib.org/advisory-2002-03-11.txt
892111Sgreen- Returned incorrect error (Z_MEM_ERROR) on some invalid data
992111Sgreen- Avoid accesses before window for invalid distances with inflate window
1092111Sgreen  less than 32K.
1192111Sgreen- force windowBits > 8 to avoid a bug in the encoder for a window size
1292111Sgreen  of 256 bytes. (A complete fix will be available in 1.1.5).
1392111Sgreen	
1442468SpeterChanges in 1.1.3 (9 July 1998)
1542468Speter- fix "an inflate input buffer bug that shows up on rare but persistent
1642468Speter  occasions" (Mark)
1742468Speter- fix gzread and gztell for concatenated .gz files (Didier Le Botlan)
1842468Speter- fix gzseek(..., SEEK_SET) in write mode
1942468Speter- fix crc check after a gzeek (Frank Faubert)
2042468Speter- fix miniunzip when the last entry in a zip file is itself a zip file
2142468Speter  (J Lillge)
2242468Speter- add contrib/asm586 and contrib/asm686 (Brian Raiter)
2342468Speter  See http://www.muppetlabs.com/~breadbox/software/assembly.html
2442468Speter- add support for Delphi 3 in contrib/delphi (Bob Dellaca)
2542468Speter- add support for C++Builder 3 and Delphi 3 in contrib/delphi2 (Davide Moretti)
2642468Speter- do not exit prematurely in untgz if 0 at start of block (Magnus Holmgren)
2742468Speter- use macro EXTERN instead of extern to support DLL for BeOS (Sander Stoks)
2842468Speter- added a FAQ file
2942468Speter
3042468Speter- Support gzdopen on Mac with Metrowerks (Jason Linhart)
3142468Speter- Do not redefine Byte on Mac (Brad Pettit & Jason Linhart)
3242468Speter- define SEEK_END too if SEEK_SET is not defined (Albert Chin-A-Young)
3342468Speter- avoid some warnings with Borland C (Tom Tanner)
3442468Speter- fix a problem in contrib/minizip/zip.c for 16-bit MSDOS (Gilles Vollant)
3542468Speter- emulate utime() for WIN32 in contrib/untgz  (Gilles Vollant)
3642468Speter- allow several arguments to configure (Tim Mooney, Frodo Looijaard)
3742468Speter- use libdir and includedir in Makefile.in (Tim Mooney)
3842468Speter- support shared libraries on OSF1 V4 (Tim Mooney)
3942468Speter- remove so_locations in "make clean"  (Tim Mooney)
4042468Speter- fix maketree.c compilation error (Glenn, Mark)
4142468Speter- Python interface to zlib now in Python 1.5 (Jeremy Hylton)
4242468Speter- new Makefile.riscos (Rich Walker)
4342468Speter- initialize static descriptors in trees.c for embedded targets (Nick Smith)
4442468Speter- use "foo-gz" in example.c for RISCOS and VMS (Nick Smith)
4542468Speter- add the OS/2 files in Makefile.in too (Andrew Zabolotny)
4642468Speter- fix fdopen and halloc macros for Microsoft C 6.0 (Tom Lane)
4742468Speter- fix maketree.c to allow clean compilation of inffixed.h (Mark)
4842468Speter- fix parameter check in deflateCopy (Gunther Nikl)
4942468Speter- cleanup trees.c, use compressed_len only in debug mode (Christian Spieler)
5042468Speter- Many portability patches by Christian Spieler:
5142468Speter  . zutil.c, zutil.h: added "const" for zmem*
5242468Speter  . Make_vms.com: fixed some typos
5342468Speter  . Make_vms.com: msdos/Makefile.*: removed zutil.h from some dependency lists
5442468Speter  . msdos/Makefile.msc: remove "default rtl link library" info from obj files
5542468Speter  . msdos/Makefile.*: use model-dependent name for the built zlib library
5642468Speter  . msdos/Makefile.emx, nt/Makefile.emx, nt/Makefile.gcc:
5742468Speter     new makefiles, for emx (DOS/OS2), emx&rsxnt and mingw32 (Windows 9x / NT)
5842468Speter- use define instead of typedef for Bytef also for MSC small/medium (Tom Lane)
5942468Speter- replace __far with _far for better portability (Christian Spieler, Tom Lane)
6042468Speter- fix test for errno.h in configure (Tim Newsham)
6142468Speter
6242468SpeterChanges in 1.1.2 (19 March 98)
6342468Speter- added contrib/minzip, mini zip and unzip based on zlib (Gilles Vollant)
6442468Speter  See http://www.winimage.com/zLibDll/unzip.html
6542468Speter- preinitialize the inflate tables for fixed codes, to make the code
6642468Speter  completely thread safe (Mark)
6742468Speter- some simplifications and slight speed-up to the inflate code (Mark)
6842468Speter- fix gzeof on non-compressed files (Allan Schrum)
6942468Speter- add -std1 option in configure for OSF1 to fix gzprintf (Martin Mokrejs)
7042468Speter- use default value of 4K for Z_BUFSIZE for 16-bit MSDOS (Tim Wegner + Glenn)
7142468Speter- added os2/Makefile.def and os2/zlib.def (Andrew Zabolotny)
7242468Speter- add shared lib support for UNIX_SV4.2MP (MATSUURA Takanori)
7342468Speter- do not wrap extern "C" around system includes (Tom Lane)
7442468Speter- mention zlib binding for TCL in README (Andreas Kupries)
7542468Speter- added amiga/Makefile.pup for Amiga powerUP SAS/C PPC (Andreas Kleinert)
7642468Speter- allow "make install prefix=..." even after configure (Glenn Randers-Pehrson)
7742468Speter- allow "configure --prefix $HOME" (Tim Mooney)
7842468Speter- remove warnings in example.c and gzio.c (Glenn Randers-Pehrson)
7942468Speter- move Makefile.sas to amiga/Makefile.sas
8042468Speter
8133904SsteveChanges in 1.1.1 (27 Feb 98)
8233904Ssteve- fix macros _tr_tally_* in deflate.h for debug mode  (Glenn Randers-Pehrson)
8333904Ssteve- remove block truncation heuristic which had very marginal effect for zlib
8433904Ssteve  (smaller lit_bufsize than in gzip 1.2.4) and degraded a little the
8533904Ssteve  compression ratio on some files. This also allows inlining _tr_tally for
8633904Ssteve  matches in deflate_slow.
8733904Ssteve- added msdos/Makefile.w32 for WIN32 Microsoft Visual C++ (Bob Frazier)
8833904Ssteve
8933904SsteveChanges in 1.1.0 (24 Feb 98)
9033904Ssteve- do not return STREAM_END prematurely in inflate (John Bowler)
9133904Ssteve- revert to the zlib 1.0.8 inflate to avoid the gcc 2.8.0 bug (Jeremy Buhler)
9233904Ssteve- compile with -DFASTEST to get compression code optimized for speed only
9333904Ssteve- in minigzip, try mmap'ing the input file first (Miguel Albrecht)
9433904Ssteve- increase size of I/O buffers in minigzip.c and gzio.c (not a big gain
9533904Ssteve  on Sun but significant on HP)
9633904Ssteve
9733904Ssteve- add a pointer to experimental unzip library in README (Gilles Vollant)
9833904Ssteve- initialize variable gcc in configure (Chris Herborth)
9933904Ssteve
10033904SsteveChanges in 1.0.9 (17 Feb 1998)
10133904Ssteve- added gzputs and gzgets functions
10233904Ssteve- do not clear eof flag in gzseek (Mark Diekhans)
10333904Ssteve- fix gzseek for files in transparent mode (Mark Diekhans)
10433904Ssteve- do not assume that vsprintf returns the number of bytes written (Jens Krinke)
10533904Ssteve- replace EXPORT with ZEXPORT to avoid conflict with other programs
10633904Ssteve- added compress2 in zconf.h, zlib.def, zlib.dnt
10733904Ssteve- new asm code from Gilles Vollant in contrib/asm386
10833904Ssteve- simplify the inflate code (Mark):
10933904Ssteve . Replace ZALLOC's in huft_build() with single ZALLOC in inflate_blocks_new()
11033904Ssteve . ZALLOC the length list in inflate_trees_fixed() instead of using stack
11133904Ssteve . ZALLOC the value area for huft_build() instead of using stack
11233904Ssteve . Simplify Z_FINISH check in inflate()
11333904Ssteve
11433904Ssteve- Avoid gcc 2.8.0 comparison bug a little differently than zlib 1.0.8
11533904Ssteve- in inftrees.c, avoid cc -O bug on HP (Farshid Elahi)
11633904Ssteve- in zconf.h move the ZLIB_DLL stuff earlier to avoid problems with
11733904Ssteve  the declaration of FAR (Gilles VOllant)
11833904Ssteve- install libz.so* with mode 755 (executable) instead of 644 (Marc Lehmann)
11933904Ssteve- read_buf buf parameter of type Bytef* instead of charf*
12033904Ssteve- zmemcpy parameters are of type Bytef*, not charf* (Joseph Strout)
12133904Ssteve- do not redeclare unlink in minigzip.c for WIN32 (John Bowler)
12233904Ssteve- fix check for presence of directories in "make install" (Ian Willis)
12333904Ssteve
12433904SsteveChanges in 1.0.8 (27 Jan 1998)
12533904Ssteve- fixed offsets in contrib/asm386/gvmat32.asm (Gilles Vollant)
12633904Ssteve- fix gzgetc and gzputc for big endian systems (Markus Oberhumer)
12733904Ssteve- added compress2() to allow setting the compression level
12833904Ssteve- include sys/types.h to get off_t on some systems (Marc Lehmann & QingLong)
12933904Ssteve- use constant arrays for the static trees in trees.c instead of computing
13033904Ssteve  them at run time (thanks to Ken Raeburn for this suggestion). To create
13133904Ssteve  trees.h, compile with GEN_TREES_H and run "make test".
13233904Ssteve- check return code of example in "make test" and display result
13333904Ssteve- pass minigzip command line options to file_compress
13433904Ssteve- simplifying code of inflateSync to avoid gcc 2.8 bug
13533904Ssteve
13633904Ssteve- support CC="gcc -Wall" in configure -s (QingLong)
13733904Ssteve- avoid a flush caused by ftell in gzopen for write mode (Ken Raeburn)
13833904Ssteve- fix test for shared library support to avoid compiler warnings
13933904Ssteve- zlib.lib -> zlib.dll in msdos/zlib.rc (Gilles Vollant)
14033904Ssteve- check for TARGET_OS_MAC in addition to MACOS (Brad Pettit)
14133904Ssteve- do not use fdopen for Metrowerks on Mac (Brad Pettit))
14233904Ssteve- add checks for gzputc and gzputc in example.c
14333904Ssteve- avoid warnings in gzio.c and deflate.c (Andreas Kleinert)
14433904Ssteve- use const for the CRC table (Ken Raeburn)
14533904Ssteve- fixed "make uninstall" for shared libraries
14633904Ssteve- use Tracev instead of Trace in infblock.c
14733904Ssteve- in example.c use correct compressed length for test_sync
14833904Ssteve- suppress +vnocompatwarnings in configure for HPUX (not always supported)
14933904Ssteve
15033904SsteveChanges in 1.0.7 (20 Jan 1998)
15133904Ssteve- fix gzseek which was broken in write mode
15233904Ssteve- return error for gzseek to negative absolute position
15333904Ssteve- fix configure for Linux (Chun-Chung Chen)
15433904Ssteve- increase stack space for MSC (Tim Wegner)
15533904Ssteve- get_crc_table and inflateSyncPoint are EXPORTed (Gilles Vollant)
15633904Ssteve- define EXPORTVA for gzprintf (Gilles Vollant)
15733904Ssteve- added man page zlib.3 (Rick Rodgers)
15833904Ssteve- for contrib/untgz, fix makedir() and improve Makefile
15933904Ssteve
16033904Ssteve- check gzseek in write mode in example.c
16133904Ssteve- allocate extra buffer for seeks only if gzseek is actually called
16233904Ssteve- avoid signed/unsigned comparisons (Tim Wegner, Gilles Vollant)
16333904Ssteve- add inflateSyncPoint in zconf.h
16433904Ssteve- fix list of exported functions in nt/zlib.dnt and mdsos/zlib.def
16533904Ssteve
16633904SsteveChanges in 1.0.6 (19 Jan 1998)
16733904Ssteve- add functions gzprintf, gzputc, gzgetc, gztell, gzeof, gzseek, gzrewind and
16833904Ssteve  gzsetparams (thanks to Roland Giersig and Kevin Ruland for some of this code)
16933904Ssteve- Fix a deflate bug occuring only with compression level 0 (thanks to
17033904Ssteve  Andy Buckler for finding this one).
17133904Ssteve- In minigzip, pass transparently also the first byte for .Z files.
17233904Ssteve- return Z_BUF_ERROR instead of Z_OK if output buffer full in uncompress()
17333904Ssteve- check Z_FINISH in inflate (thanks to Marc Schluper)
17433904Ssteve- Implement deflateCopy (thanks to Adam Costello)
17533904Ssteve- make static libraries by default in configure, add --shared option.
17633904Ssteve- move MSDOS or Windows specific files to directory msdos
17733904Ssteve- suppress the notion of partial flush to simplify the interface
17833904Ssteve  (but the symbol Z_PARTIAL_FLUSH is kept for compatibility with 1.0.4)
17933904Ssteve- suppress history buffer provided by application to simplify the interface
18033904Ssteve  (this feature was not implemented anyway in 1.0.4)
18133904Ssteve- next_in and avail_in must be initialized before calling inflateInit or
18233904Ssteve  inflateInit2
18333904Ssteve- add EXPORT in all exported functions (for Windows DLL)
18433904Ssteve- added Makefile.nt (thanks to Stephen Williams)
18533904Ssteve- added the unsupported "contrib" directory:
18633904Ssteve   contrib/asm386/ by Gilles Vollant <info@winimage.com>
18733904Ssteve	386 asm code replacing longest_match().
18833904Ssteve   contrib/iostream/ by Kevin Ruland <kevin@rodin.wustl.edu>
18933904Ssteve        A C++ I/O streams interface to the zlib gz* functions
19033904Ssteve   contrib/iostream2/  by Tyge L�vset <Tyge.Lovset@cmr.no>
19133904Ssteve	Another C++ I/O streams interface
19233904Ssteve   contrib/untgz/  by "Pedro A. Aranda Guti\irrez" <paag@tid.es>
19333904Ssteve	A very simple tar.gz file extractor using zlib
19433904Ssteve   contrib/visual-basic.txt by Carlos Rios <c_rios@sonda.cl>
19533904Ssteve        How to use compress(), uncompress() and the gz* functions from VB.
19633904Ssteve- pass params -f (filtered data), -h (huffman only), -1 to -9 (compression
19733904Ssteve  level) in minigzip (thanks to Tom Lane)
19833904Ssteve
19933904Ssteve- use const for rommable constants in deflate
20033904Ssteve- added test for gzseek and gztell in example.c
20133904Ssteve- add undocumented function inflateSyncPoint() (hack for Paul Mackerras)
20233904Ssteve- add undocumented function zError to convert error code to string
20333904Ssteve  (for Tim Smithers)
20433904Ssteve- Allow compilation of gzio with -DNO_DEFLATE to avoid the compression code.
20533904Ssteve- Use default memcpy for Symantec MSDOS compiler.
20633904Ssteve- Add EXPORT keyword for check_func (needed for Windows DLL)
20733904Ssteve- add current directory to LD_LIBRARY_PATH for "make test"
20833904Ssteve- create also a link for libz.so.1
20933904Ssteve- added support for FUJITSU UXP/DS (thanks to Toshiaki Nomura)
21033904Ssteve- use $(SHAREDLIB) instead of libz.so in Makefile.in (for HPUX)
21133904Ssteve- added -soname for Linux in configure (Chun-Chung Chen,
21233904Ssteve- assign numbers to the exported functions in zlib.def (for Windows DLL)
21333904Ssteve- add advice in zlib.h for best usage of deflateSetDictionary
21433904Ssteve- work around compiler bug on Atari (cast Z_NULL in call of s->checkfn)
21533904Ssteve- allow compilation with ANSI keywords only enabled for TurboC in large model
21633904Ssteve- avoid "versionString"[0] (Borland bug)
21733904Ssteve- add NEED_DUMMY_RETURN for Borland
21842468Speter- use variable z_verbose for tracing in debug mode (L. Peter Deutsch).
21933904Ssteve- allow compilation with CC
22033904Ssteve- defined STDC for OS/2 (David Charlap)	
22133904Ssteve- limit external names to 8 chars for MVS (Thomas Lund)
22233904Ssteve- in minigzip.c, use static buffers only for 16-bit systems
22333904Ssteve- fix suffix check for "minigzip -d foo.gz"
22433904Ssteve- do not return an error for the 2nd of two consecutive gzflush() (Felix Lee)
22533904Ssteve- use _fdopen instead of fdopen for MSC >= 6.0 (Thomas Fanslau)
22633904Ssteve- added makelcc.bat for lcc-win32 (Tom St Denis)
22733904Ssteve- in Makefile.dj2, use copy and del instead of install and rm (Frank Donahoe)
22833904Ssteve- Avoid expanded $Id$. Use "rcs -kb" or "cvs admin -kb" to avoid Id expansion.
22933904Ssteve- check for unistd.h in configure (for off_t)
23033904Ssteve- remove useless check parameter in inflate_blocks_free
23133904Ssteve- avoid useless assignment of s->check to itself in inflate_blocks_new
23233904Ssteve- do not flush twice in gzclose (thanks to Ken Raeburn)
23333904Ssteve- rename FOPEN as F_OPEN to avoid clash with /usr/include/sys/file.h
23433904Ssteve- use NO_ERRNO_H instead of enumeration of operating systems with errno.h
23533904Ssteve- work around buggy fclose on pipes for HP/UX
23633904Ssteve- support zlib DLL with BORLAND C++ 5.0 (thanks to Glenn Randers-Pehrson)
23733904Ssteve- fix configure if CC is already equal to gcc
23833904Ssteve
23933904SsteveChanges in 1.0.5 (3 Jan 98)
24033904Ssteve- Fix inflate to terminate gracefully when fed corrupted or invalid data
24133904Ssteve- Use const for rommable constants in inflate
24233904Ssteve- Eliminate memory leaks on error conditions in inflate
24333904Ssteve- Removed some vestigial code in inflate
24433904Ssteve- Update web address in README
24533904Ssteve  
24617651SpeterChanges in 1.0.4 (24 Jul 96)
24717651Speter- In very rare conditions, deflate(s, Z_FINISH) could fail to produce an EOF
24817651Speter  bit, so the decompressor could decompress all the correct data but went
24917651Speter  on to attempt decompressing extra garbage data. This affected minigzip too.
25017651Speter- zlibVersion and gzerror return const char* (needed for DLL)
25117651Speter- port to RISCOS (no fdopen, no multiple dots, no unlink, no fileno)
25217651Speter- use z_error only for DEBUG (avoid problem with DLLs)
25317651Speter
25417651SpeterChanges in 1.0.3 (2 Jul 96)
25517651Speter- use z_streamp instead of z_stream *, which is now a far pointer in MSDOS
25617651Speter  small and medium models; this makes the library incompatible with previous
25717651Speter  versions for these models. (No effect in large model or on other systems.)
25817651Speter- return OK instead of BUF_ERROR if previous deflate call returned with
25917651Speter  avail_out as zero but there is nothing to do
26017651Speter- added memcmp for non STDC compilers
26117651Speter- define NO_DUMMY_DECL for more Mac compilers (.h files merged incorrectly)
26217651Speter- define __32BIT__ if __386__ or i386 is defined (pb. with Watcom and SCO)
26317651Speter- better check for 16-bit mode MSC (avoids problem with Symantec)
26417651Speter
26517651SpeterChanges in 1.0.2 (23 May 96)
26617651Speter- added Windows DLL support
26717651Speter- added a function zlibVersion (for the DLL support)
26817651Speter- fixed declarations using Bytef in infutil.c (pb with MSDOS medium model)
26917651Speter- Bytef is define's instead of typedef'd only for Borland C
27017651Speter- avoid reading uninitialized memory in example.c
27117651Speter- mention in README that the zlib format is now RFC1950
27217651Speter- updated Makefile.dj2
27317651Speter- added algorithm.doc
27417651Speter
27517651SpeterChanges in 1.0.1 (20 May 96) [1.0 skipped to avoid confusion]
27617651Speter- fix array overlay in deflate.c which sometimes caused bad compressed data
27717651Speter- fix inflate bug with empty stored block
27817651Speter- fix MSDOS medium model which was broken in 0.99
27917651Speter- fix deflateParams() which could generated bad compressed data.
28017651Speter- Bytef is define'd instead of typedef'ed (work around Borland bug)
28117651Speter- added an INDEX file
28217651Speter- new makefiles for DJGPP (Makefile.dj2), 32-bit Borland (Makefile.b32),
28317651Speter  Watcom (Makefile.wat), Amiga SAS/C (Makefile.sas)
28417651Speter- speed up adler32 for modern machines without auto-increment
28517651Speter- added -ansi for IRIX in configure
28617651Speter- static_init_done in trees.c is an int
28717651Speter- define unlink as delete for VMS
28817651Speter- fix configure for QNX
28917651Speter- add configure branch for SCO and HPUX
29017651Speter- avoid many warnings (unused variables, dead assignments, etc...)
29117651Speter- no fdopen for BeOS
29217651Speter- fix the Watcom fix for 32 bit mode (define FAR as empty)
29317651Speter- removed redefinition of Byte for MKWERKS
29417651Speter- work around an MWKERKS bug (incorrect merge of all .h files)
29517651Speter
29617651SpeterChanges in 0.99 (27 Jan 96)
29717651Speter- allow preset dictionary shared between compressor and decompressor
29817651Speter- allow compression level 0 (no compression)
29917651Speter- add deflateParams in zlib.h: allow dynamic change of compression level
30017651Speter  and compression strategy.
30117651Speter- test large buffers and deflateParams in example.c
30217651Speter- add optional "configure" to build zlib as a shared library
30317651Speter- suppress Makefile.qnx, use configure instead
30417651Speter- fixed deflate for 64-bit systems (detected on Cray)
30517651Speter- fixed inflate_blocks for 64-bit systems (detected on Alpha)
30617651Speter- declare Z_DEFLATED in zlib.h (possible parameter for deflateInit2)
30717651Speter- always return Z_BUF_ERROR when deflate() has nothing to do
30817651Speter- deflateInit and inflateInit are now macros to allow version checking
30917651Speter- prefix all global functions and types with z_ with -DZ_PREFIX
31017651Speter- make falloc completely reentrant (inftrees.c)
31117651Speter- fixed very unlikely race condition in ct_static_init
31217651Speter- free in reverse order of allocation to help memory manager
31317651Speter- use zlib-1.0/* instead of zlib/* inside the tar.gz
31417651Speter- make zlib warning-free with "gcc -O3 -Wall -Wwrite-strings -Wpointer-arith
31517651Speter  -Wconversion -Wstrict-prototypes -Wmissing-prototypes"
31617651Speter- allow gzread on concatenated .gz files
31717651Speter- deflateEnd now returns Z_DATA_ERROR if it was premature
31817651Speter- deflate is finally (?) fully deterministic (no matches beyond end of input)
31917651Speter- Document Z_SYNC_FLUSH
32017651Speter- add uninstall in Makefile
32117651Speter- Check for __cpluplus in zlib.h
32217651Speter- Better test in ct_align for partial flush
32317651Speter- avoid harmless warnings for Borland C++
32417651Speter- initialize hash_head in deflate.c
32517651Speter- avoid warning on fdopen (gzio.c) for HP cc -Aa
32617651Speter- include stdlib.h for STDC compilers
32717651Speter- include errno.h for Cray
32817651Speter- ignore error if ranlib doesn't exist
32917651Speter- call ranlib twice for NeXTSTEP
33017651Speter- use exec_prefix instead of prefix for libz.a
33117651Speter- renamed ct_* as _tr_* to avoid conflict with applications
33217651Speter- clear z->msg in inflateInit2 before any error return
33317651Speter- initialize opaque in example.c, gzio.c, deflate.c and inflate.c
33417651Speter- fixed typo in zconf.h (_GNUC__ => __GNUC__)
33517651Speter- check for WIN32 in zconf.h and zutil.c (avoid farmalloc in 32-bit mode)
33617651Speter- fix typo in Make_vms.com (f$trnlnm -> f$getsyi)
33717651Speter- in fcalloc, normalize pointer if size > 65520 bytes
33817651Speter- don't use special fcalloc for 32 bit Borland C++
33917651Speter- use STDC instead of __GO32__ to avoid redeclaring exit, calloc, etc...
34017651Speter- use Z_BINARY instead of BINARY
34117651Speter- document that gzclose after gzdopen will close the file
34217651Speter- allow "a" as mode in gzopen.
34317651Speter- fix error checking in gzread
34417651Speter- allow skipping .gz extra-field on pipes
34517651Speter- added reference to Perl interface in README
34617651Speter- put the crc table in FAR data (I dislike more and more the medium model :)
34717651Speter- added get_crc_table
34817651Speter- added a dimension to all arrays (Borland C can't count).
34917651Speter- workaround Borland C bug in declaration of inflate_codes_new & inflate_fast
35017651Speter- guard against multiple inclusion of *.h (for precompiled header on Mac)
35117651Speter- Watcom C pretends to be Microsoft C small model even in 32 bit mode.
35217651Speter- don't use unsized arrays to avoid silly warnings by Visual C++:
35317651Speter     warning C4746: 'inflate_mask' : unsized array treated as  '__far'
35417651Speter     (what's wrong with far data in far model?).
35517651Speter- define enum out of inflate_blocks_state to allow compilation with C++
35617651Speter
35717651SpeterChanges in 0.95 (16 Aug 95)
35817651Speter- fix MSDOS small and medium model (now easier to adapt to any compiler)
35917651Speter- inlined send_bits
36017651Speter- fix the final (:-) bug for deflate with flush (output was correct but
36117651Speter  not completely flushed in rare occasions).
36217651Speter- default window size is same for compression and decompression
36317651Speter  (it's now sufficient to set MAX_WBITS in zconf.h).
36417651Speter- voidp -> voidpf and voidnp -> voidp (for consistency with other
36517651Speter  typedefs and because voidnp was not near in large model).
36617651Speter
36717651SpeterChanges in 0.94 (13 Aug 95)
36817651Speter- support MSDOS medium model
36917651Speter- fix deflate with flush (could sometimes generate bad output)
37017651Speter- fix deflateReset (zlib header was incorrectly suppressed)
37117651Speter- added support for VMS
37217651Speter- allow a compression level in gzopen()
37317651Speter- gzflush now calls fflush
37417651Speter- For deflate with flush, flush even if no more input is provided.
37517651Speter- rename libgz.a as libz.a
37617651Speter- avoid complex expression in infcodes.c triggering Turbo C bug
37717651Speter- work around a problem with gcc on Alpha (in INSERT_STRING)
37817651Speter- don't use inline functions (problem with some gcc versions)
37917651Speter- allow renaming of Byte, uInt, etc... with #define.
38017651Speter- avoid warning about (unused) pointer before start of array in deflate.c
38117651Speter- avoid various warnings in gzio.c, example.c, infblock.c, adler32.c, zutil.c
38217651Speter- avoid reserved word 'new' in trees.c
38317651Speter
38417651SpeterChanges in 0.93 (25 June 95)
38517651Speter- temporarily disable inline functions
38617651Speter- make deflate deterministic
38717651Speter- give enough lookahead for PARTIAL_FLUSH
38817651Speter- Set binary mode for stdin/stdout in minigzip.c for OS/2
38917651Speter- don't even use signed char in inflate (not portable enough)
39017651Speter- fix inflate memory leak for segmented architectures
39117651Speter
39217651SpeterChanges in 0.92 (3 May 95)
39317651Speter- don't assume that char is signed (problem on SGI)
39417651Speter- Clear bit buffer when starting a stored block
39517651Speter- no memcpy on Pyramid
39617651Speter- suppressed inftest.c
39717651Speter- optimized fill_window, put longest_match inline for gcc
39817651Speter- optimized inflate on stored blocks.
39917651Speter- untabify all sources to simplify patches
40017651Speter
40117651SpeterChanges in 0.91 (2 May 95)
40217651Speter- Default MEM_LEVEL is 8 (not 9 for Unix) as documented in zlib.h
40317651Speter- Document the memory requirements in zconf.h
40417651Speter- added "make install"
40517651Speter- fix sync search logic in inflateSync
40617651Speter- deflate(Z_FULL_FLUSH) now works even if output buffer too short
40717651Speter- after inflateSync, don't scare people with just "lo world"
40817651Speter- added support for DJGPP
40917651Speter
41017651SpeterChanges in 0.9 (1 May 95)
41117651Speter- don't assume that zalloc clears the allocated memory (the TurboC bug
41217651Speter  was Mark's bug after all :)
41317651Speter- let again gzread copy uncompressed data unchanged (was working in 0.71)
41417651Speter- deflate(Z_FULL_FLUSH), inflateReset and inflateSync are now fully implemented
41517651Speter- added a test of inflateSync in example.c
41617651Speter- moved MAX_WBITS to zconf.h because users might want to change that.
41717651Speter- document explicitly that zalloc(64K) on MSDOS must return a normalized
41817651Speter  pointer (zero offset)
41917651Speter- added Makefiles for Microsoft C, Turbo C, Borland C++
42017651Speter- faster crc32()
42117651Speter
42217651SpeterChanges in 0.8 (29 April 95)
42317651Speter- added fast inflate (inffast.c)
42417651Speter- deflate(Z_FINISH) now returns Z_STREAM_END when done. Warning: this
42517651Speter  is incompatible with previous versions of zlib which returned Z_OK.
42617651Speter- work around a TurboC compiler bug (bad code for b << 0, see infutil.h)
42717651Speter  (actually that was not a compiler bug, see 0.81 above)
42817651Speter- gzread no longer reads one extra byte in certain cases
42917651Speter- In gzio destroy(), don't reference a freed structure
43017651Speter- avoid many warnings for MSDOS
43117651Speter- avoid the ERROR symbol which is used by MS Windows
43217651Speter
43317651SpeterChanges in 0.71 (14 April 95)
43417651Speter- Fixed more MSDOS compilation problems :( There is still a bug with
43517651Speter  TurboC large model.
43617651Speter
43717651SpeterChanges in 0.7 (14 April 95)
43817651Speter- Added full inflate support.
43917651Speter- Simplified the crc32() interface. The pre- and post-conditioning
44017651Speter  (one's complement) is now done inside crc32(). WARNING: this is
44117651Speter  incompatible with previous versions; see zlib.h for the new usage.
44217651Speter
44317651SpeterChanges in 0.61 (12 April 95)
44417651Speter- workaround for a bug in TurboC. example and minigzip now work on MSDOS.
44517651Speter
44617651SpeterChanges in 0.6 (11 April 95)
44717651Speter- added minigzip.c
44817651Speter- added gzdopen to reopen a file descriptor as gzFile
44917651Speter- added transparent reading of non-gziped files in gzread.
45017651Speter- fixed bug in gzread (don't read crc as data)
45117651Speter- fixed bug in destroy (gzio.c) (don't return Z_STREAM_END for gzclose).
45217651Speter- don't allocate big arrays in the stack (for MSDOS)
45317651Speter- fix some MSDOS compilation problems
45417651Speter
45517651SpeterChanges in 0.5:
45617651Speter- do real compression in deflate.c. Z_PARTIAL_FLUSH is supported but
45717651Speter  not yet Z_FULL_FLUSH.
45817651Speter- support decompression but only in a single step (forced Z_FINISH)
45917651Speter- added opaque object for zalloc and zfree.
46017651Speter- added deflateReset and inflateReset
46117651Speter- added a variable zlib_version for consistency checking.
46217651Speter- renamed the 'filter' parameter of deflateInit2 as 'strategy'.
46317651Speter  Added Z_FILTERED and Z_HUFFMAN_ONLY constants.
46417651Speter
46517651SpeterChanges in 0.4:
46617651Speter- avoid "zip" everywhere, use zlib instead of ziplib.
46717651Speter- suppress Z_BLOCK_FLUSH, interpret Z_PARTIAL_FLUSH as block flush
46817651Speter  if compression method == 8.
46917651Speter- added adler32 and crc32
47017651Speter- renamed deflateOptions as deflateInit2, call one or the other but not both
47117651Speter- added the method parameter for deflateInit2.
47217651Speter- added inflateInit2
47317651Speter- simplied considerably deflateInit and inflateInit by not supporting
47417651Speter  user-provided history buffer. This is supported only in deflateInit2
47517651Speter  and inflateInit2.
47617651Speter
47717651SpeterChanges in 0.3:
47817651Speter- prefix all macro names with Z_
47917651Speter- use Z_FINISH instead of deflateEnd to finish compression.
48017651Speter- added Z_HUFFMAN_ONLY
48117651Speter- added gzerror()
482