summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Adler <madler@alumni.caltech.edu>2011-09-09 23:33:59 -0700
committerMark Adler <madler@alumni.caltech.edu>2011-09-09 23:33:59 -0700
commita1141160bcf563f1a269be68a21f1651f687bb69 (patch)
tree8817801b5113a40c7abceb9bfcf9fc37863d05d5
parent59ca2179ff8ef92e9e8351a11f1a92e7138364c2 (diff)
downloadzlib-1.2.4.tar.gz
zlib-1.2.4.tar.bz2
zlib-1.2.4.zip
zlib 1.2.4v1.2.4
-rw-r--r--ChangeLog4
-rw-r--r--FAQ12
-rw-r--r--contrib/infback9/inftree9.c2
-rw-r--r--contrib/masmx64/readme.txt5
-rw-r--r--contrib/masmx86/readme.txt10
-rw-r--r--contrib/vstudio/vc10/zlibvc.def6
-rw-r--r--contrib/vstudio/vc9/zlibvc.def6
-rw-r--r--gzguts.h2
-rw-r--r--inftrees.c2
-rw-r--r--win32/Makefile.gcc.old140
-rw-r--r--zlib.32
-rw-r--r--zlib.3.pdfbin8689 -> 8688 bytes
-rw-r--r--zlib.h2
-rw-r--r--zutil.h2
14 files changed, 27 insertions, 168 deletions
diff --git a/ChangeLog b/ChangeLog
index 1dea1d0..6d046ee 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,7 +1,7 @@
1 1
2 ChangeLog file for zlib 2 ChangeLog file for zlib
3 3
4Changes in 1.2.4 (13 Mar 2010) 4Changes in 1.2.4 (14 Mar 2010)
5- Fix VER3 extraction in configure for no fourth subversion 5- Fix VER3 extraction in configure for no fourth subversion
6- Update zlib.3, add docs to Makefile.in to make .pdf out of it 6- Update zlib.3, add docs to Makefile.in to make .pdf out of it
7- Add zlib.3.pdf to distribution 7- Add zlib.3.pdf to distribution
@@ -30,6 +30,8 @@ Changes in 1.2.4 (13 Mar 2010)
30- Fix name change from inflate.h in contrib/inflate86/inffas86.c 30- Fix name change from inflate.h in contrib/inflate86/inffas86.c
31- Check if temporary file exists before removing in make_vms.com [Zinser] 31- Check if temporary file exists before removing in make_vms.com [Zinser]
32- Fix make install and uninstall for --static option 32- Fix make install and uninstall for --static option
33- Fix usage of _MSC_VER in gzguts.h and zutil.h [Truta]
34- Update readme.txt in contrib/masmx64 and masmx86 to assemble
33 35
34Changes in 1.2.3.9 (21 Feb 2010) 36Changes in 1.2.3.9 (21 Feb 2010)
35- Expunge gzio.c 37- Expunge gzio.c
diff --git a/FAQ b/FAQ
index 5603207..1a22750 100644
--- a/FAQ
+++ b/FAQ
@@ -25,7 +25,7 @@ The lastest zlib FAQ is at http://zlib.net/zlib_faq.html
25 25
26 4. compress() returns Z_BUF_ERROR. 26 4. compress() returns Z_BUF_ERROR.
27 27
28 Make sure that before the call of compress, the length of the compressed 28 Make sure that before the call of compress(), the length of the compressed
29 buffer is equal to the available size of the compressed buffer and not 29 buffer is equal to the available size of the compressed buffer and not
30 zero. For Visual Basic, check that this parameter is passed by reference 30 zero. For Visual Basic, check that this parameter is passed by reference
31 ("as any"), not by value ("as long"). 31 ("as any"), not by value ("as long").
@@ -108,8 +108,8 @@ The lastest zlib FAQ is at http://zlib.net/zlib_faq.html
108 108
10916. Can zlib decode Flate data in an Adobe PDF file? 10916. Can zlib decode Flate data in an Adobe PDF file?
110 110
111 Yes. See http://www.fastio.com/ (ClibPDF), or http://www.pdflib.com/ . 111 Yes. See http://www.pdflib.com/ . To modify PDF forms, see
112 To modify PDF forms, see http://sourceforge.net/projects/acroformtool/ . 112 http://sourceforge.net/projects/acroformtool/ .
113 113
11417. Why am I getting this "register_frame_info not found" error on Solaris? 11417. Why am I getting this "register_frame_info not found" error on Solaris?
115 115
@@ -152,8 +152,8 @@ The lastest zlib FAQ is at http://zlib.net/zlib_faq.html
152 Yes. However any library routines that zlib uses and any application- 152 Yes. However any library routines that zlib uses and any application-
153 provided memory allocation routines must also be thread-safe. zlib's gz* 153 provided memory allocation routines must also be thread-safe. zlib's gz*
154 functions use stdio library routines, and most of zlib's functions use the 154 functions use stdio library routines, and most of zlib's functions use the
155 library memory allocation routines by default. zlib's Init functions allow 155 library memory allocation routines by default. zlib's *Init* functions
156 for the application to provide custom memory allocation routines. 156 allow for the application to provide custom memory allocation routines.
157 157
158 Of course, you should only operate on any given zlib or gzip stream from a 158 Of course, you should only operate on any given zlib or gzip stream from a
159 single thread at a time. 159 single thread at a time.
@@ -354,7 +354,7 @@ The lastest zlib FAQ is at http://zlib.net/zlib_faq.html
354 354
355 No. The files in contrib are not part of zlib. They were contributed by 355 No. The files in contrib are not part of zlib. They were contributed by
356 other authors and are provided as a convenience to the user within the zlib 356 other authors and are provided as a convenience to the user within the zlib
357 distribution. Each of the items in contrib have their own license. 357 distribution. Each item in contrib has its own license.
358 358
35943. Is zlib subject to export controls? What is its ECCN? 35943. Is zlib subject to export controls? What is its ECCN?
360 360
diff --git a/contrib/infback9/inftree9.c b/contrib/infback9/inftree9.c
index 4e04db9..510bba6 100644
--- a/contrib/infback9/inftree9.c
+++ b/contrib/infback9/inftree9.c
@@ -64,7 +64,7 @@ unsigned short FAR *work;
64 static const unsigned short lext[31] = { /* Length codes 257..285 extra */ 64 static const unsigned short lext[31] = { /* Length codes 257..285 extra */
65 128, 128, 128, 128, 128, 128, 128, 128, 129, 129, 129, 129, 65 128, 128, 128, 128, 128, 128, 128, 128, 129, 129, 129, 129,
66 130, 130, 130, 130, 131, 131, 131, 131, 132, 132, 132, 132, 66 130, 130, 130, 130, 131, 131, 131, 131, 132, 132, 132, 132,
67 133, 133, 133, 133, 144, 198, 71}; 67 133, 133, 133, 133, 144, 64, 195};
68 static const unsigned short dbase[32] = { /* Distance codes 0..31 base */ 68 static const unsigned short dbase[32] = { /* Distance codes 0..31 base */
69 1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 69 1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49,
70 65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073, 70 65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073,
diff --git a/contrib/masmx64/readme.txt b/contrib/masmx64/readme.txt
index cd697c4..1115d9b 100644
--- a/contrib/masmx64/readme.txt
+++ b/contrib/masmx64/readme.txt
@@ -12,7 +12,10 @@ inffasx64.asm and inffas8664.c were written by Chris Anderson, by optimizing
12 12
13Use instructions 13Use instructions
14---------------- 14----------------
15Copy these files into the zlib source directory. 15Assemble the .asm files using MASM and put the object files into the zlib source
16directory. You can also get object files here:
17
18 http://www.winimage.com/zLibDll/zlib124_masm_obj.zip
16 19
17define ASMV and ASMINF in your project. Include inffas8664.c in your source tree, 20define ASMV and ASMINF in your project. Include inffas8664.c in your source tree,
18and inffasx64.obj and gvmat64.obj as object to link. 21and inffasx64.obj and gvmat64.obj as object to link.
diff --git a/contrib/masmx86/readme.txt b/contrib/masmx86/readme.txt
index 413580e..90230f2 100644
--- a/contrib/masmx86/readme.txt
+++ b/contrib/masmx86/readme.txt
@@ -7,9 +7,15 @@ longest_match() and inflate_fast().
7 7
8Use instructions 8Use instructions
9---------------- 9----------------
10Copy these files into the zlib source directory, then run the 10Assemble using MASM, and copy the object files into the zlib source
11appropriate makefile, as suggested below. 11directory, then run the appropriate makefile, as suggested below. You can
12donwload MASM from here:
12 13
14 http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=7a1c9da0-0510-44a2-b042-7ef370530c64
15
16You can also get objects files here:
17
18 http://www.winimage.com/zLibDll/zlib124_masm_obj.zip
13 19
14Build instructions 20Build instructions
15------------------ 21------------------
diff --git a/contrib/vstudio/vc10/zlibvc.def b/contrib/vstudio/vc10/zlibvc.def
index b3b7cab..0269ef7 100644
--- a/contrib/vstudio/vc10/zlibvc.def
+++ b/contrib/vstudio/vc10/zlibvc.def
@@ -115,9 +115,7 @@ EXPORTS
115 115
116; zlib1 v1.2.4 added: 116; zlib1 v1.2.4 added:
117 adler32_combine @140 117 adler32_combine @140
118 adler32_combine64 @141
119 crc32_combine @142 118 crc32_combine @142
120 crc32_combine64 @143
121 deflateSetHeader @144 119 deflateSetHeader @144
122 deflateTune @145 120 deflateTune @145
123 gzbuffer @146 121 gzbuffer @146
@@ -125,10 +123,6 @@ EXPORTS
125 gzclose_w @148 123 gzclose_w @148
126 gzdirect @149 124 gzdirect @149
127 gzoffset @150 125 gzoffset @150
128 gzoffset64 @151
129 gzopen64 @152
130 gzseek64 @153
131 gztell64 @154
132 inflateGetHeader @156 126 inflateGetHeader @156
133 inflateMark @157 127 inflateMark @157
134 inflatePrime @158 128 inflatePrime @158
diff --git a/contrib/vstudio/vc9/zlibvc.def b/contrib/vstudio/vc9/zlibvc.def
index b3b7cab..0269ef7 100644
--- a/contrib/vstudio/vc9/zlibvc.def
+++ b/contrib/vstudio/vc9/zlibvc.def
@@ -115,9 +115,7 @@ EXPORTS
115 115
116; zlib1 v1.2.4 added: 116; zlib1 v1.2.4 added:
117 adler32_combine @140 117 adler32_combine @140
118 adler32_combine64 @141
119 crc32_combine @142 118 crc32_combine @142
120 crc32_combine64 @143
121 deflateSetHeader @144 119 deflateSetHeader @144
122 deflateTune @145 120 deflateTune @145
123 gzbuffer @146 121 gzbuffer @146
@@ -125,10 +123,6 @@ EXPORTS
125 gzclose_w @148 123 gzclose_w @148
126 gzdirect @149 124 gzdirect @149
127 gzoffset @150 125 gzoffset @150
128 gzoffset64 @151
129 gzopen64 @152
130 gzseek64 @153
131 gztell64 @154
132 inflateGetHeader @156 126 inflateGetHeader @156
133 inflateMark @157 127 inflateMark @157
134 inflatePrime @158 128 inflatePrime @158
diff --git a/gzguts.h b/gzguts.h
index 84a9797..0e7ed43 100644
--- a/gzguts.h
+++ b/gzguts.h
@@ -27,7 +27,7 @@
27# define NO_GZCOMPRESS 27# define NO_GZCOMPRESS
28#endif 28#endif
29 29
30#ifdef WIN32 30#ifdef _MSC_VER
31# include <io.h> 31# include <io.h>
32# define vsnprintf _vsnprintf 32# define vsnprintf _vsnprintf
33#endif 33#endif
diff --git a/inftrees.c b/inftrees.c
index 5bfc691..ccf7fa9 100644
--- a/inftrees.c
+++ b/inftrees.c
@@ -62,7 +62,7 @@ unsigned short FAR *work;
62 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258, 0, 0}; 62 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258, 0, 0};
63 static const unsigned short lext[31] = { /* Length codes 257..285 extra */ 63 static const unsigned short lext[31] = { /* Length codes 257..285 extra */
64 16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17, 18, 18, 18, 18, 64 16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17, 18, 18, 18, 18,
65 19, 19, 19, 19, 20, 20, 20, 20, 21, 21, 21, 21, 16, 198, 71}; 65 19, 19, 19, 19, 20, 20, 20, 20, 21, 21, 21, 21, 16, 64, 195};
66 static const unsigned short dbase[32] = { /* Distance codes 0..29 base */ 66 static const unsigned short dbase[32] = { /* Distance codes 0..29 base */
67 1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193, 67 1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193,
68 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145, 68 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145,
diff --git a/win32/Makefile.gcc.old b/win32/Makefile.gcc.old
deleted file mode 100644
index f670be4..0000000
--- a/win32/Makefile.gcc.old
+++ /dev/null
@@ -1,140 +0,0 @@
1# Makefile for zlib, derived from Makefile.dj2.
2# Modified for mingw32 by C. Spieler, 6/16/98.
3# Updated for zlib 1.2.x by Christian Spieler and Cosmin Truta, Mar-2003.
4# Last updated: 1-Aug-2003.
5# Tested under Cygwin and MinGW.
6
7# Copyright (C) 1995-2003 Jean-loup Gailly.
8# For conditions of distribution and use, see copyright notice in zlib.h
9
10# To compile, or to compile and test, type:
11#
12# make -fmakefile.gcc; make test testdll -fmakefile.gcc
13#
14# To use the asm code, type:
15# cp contrib/asm?86/match.S ./match.S
16# make LOC=-DASMV OBJA=match.o -fmakefile.gcc
17#
18# To install libz.a, zconf.h and zlib.h in the system directories, type:
19#
20# make install -fmakefile.gcc
21
22# Note:
23# If the platform is *not* MinGW (e.g. it is Cygwin or UWIN),
24# the DLL name should be changed from "zlib1.dll".
25
26STATICLIB = libz.a
27SHAREDLIB = zlib1.dll
28IMPLIB = libzdll.a
29
30#LOC = -DASMV
31#LOC = -DDEBUG -g
32
33CC = gcc
34CFLAGS = $(LOC) -O3 -Wall
35
36AS = $(CC)
37ASFLAGS = $(LOC) -Wall
38
39LD = $(CC)
40LDFLAGS = $(LOC) -s
41
42AR = ar
43ARFLAGS = rcs
44
45RC = windres
46RCFLAGS = --define GCC_WINDRES
47
48CP = cp -fp
49# If GNU install is available, replace $(CP) with install.
50INSTALL = $(CP)
51RM = rm -f
52
53prefix = /usr/local
54exec_prefix = $(prefix)
55
56OBJS = adler32.o compress.o crc32.o deflate.o infback.o \
57 inffast.o inflate.o inftrees.o trees.o uncompr.o zutil.o
58OBJA =
59
60all: $(STATICLIB) $(SHAREDLIB) $(IMPLIB) example minigzip example_d minigzip_d
61
62test: example minigzip
63 ./example
64 echo hello world | ./minigzip | ./minigzip -d
65
66testdll: example_d minigzip_d
67 ./example_d
68 echo hello world | ./minigzip_d | ./minigzip_d -d
69
70.c.o:
71 $(CC) $(CFLAGS) -c -o $@ $<
72
73.S.o:
74 $(AS) $(ASFLAGS) -c -o $@ $<
75
76$(STATICLIB): $(OBJS) $(OBJA)
77 $(AR) $(ARFLAGS) $@ $(OBJS) $(OBJA)
78
79$(IMPLIB): $(SHAREDLIB)
80
81$(SHAREDLIB): win32/zlib.def $(OBJS) $(OBJA) zlibrc.o
82 dllwrap --driver-name $(CC) --def win32/zlib.def \
83 --implib $(IMPLIB) -o $@ $(OBJS) $(OBJA) zlibrc.o
84 strip $@
85
86example: example.o $(STATICLIB)
87 $(LD) $(LDFLAGS) -o $@ example.o $(STATICLIB)
88
89minigzip: minigzip.o $(STATICLIB)
90 $(LD) $(LDFLAGS) -o $@ minigzip.o $(STATICLIB)
91
92example_d: example.o $(IMPLIB)
93 $(LD) $(LDFLAGS) -o $@ example.o $(IMPLIB)
94
95minigzip_d: minigzip.o $(IMPLIB)
96 $(LD) $(LDFLAGS) -o $@ minigzip.o $(IMPLIB)
97
98zlibrc.o: win32/zlib1.rc
99 $(RC) $(RCFLAGS) -o $@ win32/zlib1.rc
100
101
102# INCLUDE_PATH and LIBRARY_PATH must be set.
103
104.PHONY: install uninstall clean
105
106install: zlib.h zconf.h $(LIB)
107 -@if not exist $(INCLUDE_PATH)/nul mkdir $(INCLUDE_PATH)
108 -@if not exist $(LIBRARY_PATH)/nul mkdir $(LIBRARY_PATH)
109 -$(INSTALL) zlib.h $(INCLUDE_PATH)
110 -$(INSTALL) zconf.h $(INCLUDE_PATH)
111 -$(INSTALL) $(STATICLIB) $(LIBRARY_PATH)
112 -$(INSTALL) $(IMPLIB) $(LIBRARY_PATH)
113
114uninstall:
115 -$(RM) $(INCLUDE_PATH)/zlib.h
116 -$(RM) $(INCLUDE_PATH)/zconf.h
117 -$(RM) $(LIBRARY_PATH)/$(STATICLIB)
118 -$(RM) $(LIBRARY_PATH)/$(IMPLIB)
119
120clean:
121 -$(RM) $(STATICLIB)
122 -$(RM) $(SHAREDLIB)
123 -$(RM) $(IMPLIB)
124 -$(RM) *.o
125 -$(RM) *.exe
126 -$(RM) foo.gz
127
128adler32.o: zlib.h zconf.h
129compress.o: zlib.h zconf.h
130crc32.o: crc32.h zlib.h zconf.h
131deflate.o: deflate.h zutil.h zlib.h zconf.h
132example.o: zlib.h zconf.h
133inffast.o: zutil.h zlib.h zconf.h inftrees.h inflate.h inffast.h
134inflate.o: zutil.h zlib.h zconf.h inftrees.h inflate.h inffast.h
135infback.o: zutil.h zlib.h zconf.h inftrees.h inflate.h inffast.h
136inftrees.o: zutil.h zlib.h zconf.h inftrees.h
137minigzip.o: zlib.h zconf.h
138trees.o: deflate.h zutil.h zlib.h zconf.h trees.h
139uncompr.o: zlib.h zconf.h
140zutil.o: zutil.h zlib.h zconf.h
diff --git a/zlib.3 b/zlib.3
index c01df46..52999c7 100644
--- a/zlib.3
+++ b/zlib.3
@@ -1,4 +1,4 @@
1.TH ZLIB 3 "13 March 2010" 1.TH ZLIB 3 "14 March 2010"
2.SH NAME 2.SH NAME
3zlib \- compression/decompression library 3zlib \- compression/decompression library
4.SH SYNOPSIS 4.SH SYNOPSIS
diff --git a/zlib.3.pdf b/zlib.3.pdf
index 1412154..05ed2d0 100644
--- a/zlib.3.pdf
+++ b/zlib.3.pdf
Binary files differ
diff --git a/zlib.h b/zlib.h
index 1ad1ac3..f5785be 100644
--- a/zlib.h
+++ b/zlib.h
@@ -1,5 +1,5 @@
1/* zlib.h -- interface of the 'zlib' general purpose compression library 1/* zlib.h -- interface of the 'zlib' general purpose compression library
2 version 1.2.4, Mar 13th, 2010 2 version 1.2.4, Mar 14th, 2010
3 3
4 Copyright (C) 1995-2010 Jean-loup Gailly and Mark Adler 4 Copyright (C) 1995-2010 Jean-loup Gailly and Mark Adler
5 5
diff --git a/zutil.h b/zutil.h
index 93d6553..025035d 100644
--- a/zutil.h
+++ b/zutil.h
@@ -17,7 +17,7 @@
17#include "zlib.h" 17#include "zlib.h"
18 18
19#ifdef STDC 19#ifdef STDC
20# if !(defined(_WIN32_WCE) && defined(_MSV_VER)) 20# if !(defined(_WIN32_WCE) && defined(_MSC_VER))
21# include <stddef.h> 21# include <stddef.h>
22# endif 22# endif
23# include <string.h> 23# include <string.h>