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