Compare commits
	
		
			4 Commits
		
	
	
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
|   | 9712272c78 | ||
|   | 7301420248 | ||
|   | a7d70663cf | ||
|   | f4498bea28 | 
							
								
								
									
										39
									
								
								ChangeLog
									
									
									
									
									
								
							
							
						
						
									
										39
									
								
								ChangeLog
									
									
									
									
									
								
							| @@ -1,6 +1,43 @@ | ||||
|  | ||||
|                 ChangeLog file for zlib | ||||
|  | ||||
| Changes in 1.2.5 (19 Apr 2010) | ||||
| - Disable visibility attribute in win32/Makefile.gcc [Bar-Lev] | ||||
| - Default to libdir as sharedlibdir in configure [Nieder] | ||||
| - Update copyright dates on modified source files | ||||
| - Update trees.c to be able to generate modified trees.h | ||||
| - Exit configure for MinGW, suggesting win32/Makefile.gcc | ||||
|  | ||||
| Changes in 1.2.4.5 (18 Apr 2010) | ||||
| - Set sharedlibdir in configure [Torok] | ||||
| - Set LDFLAGS in Makefile.in [Bar-Lev] | ||||
| - Avoid mkdir objs race condition in Makefile.in [Bowler] | ||||
| - Add ZLIB_INTERNAL in front of internal inter-module functions and arrays | ||||
| - Define ZLIB_INTERNAL to hide internal functions and arrays for GNU C | ||||
| - Don't use hidden attribute when it is a warning generator (e.g. Solaris) | ||||
|  | ||||
| Changes in 1.2.4.4 (18 Apr 2010) | ||||
| - Fix CROSS_PREFIX executable testing, CHOST extract, mingw* [Torok] | ||||
| - Undefine _LARGEFILE64_SOURCE in zconf.h if it is zero, but not if empty | ||||
| - Try to use bash or ksh regardless of functionality of /bin/sh | ||||
| - Fix configure incompatibility with NetBSD sh | ||||
| - Remove attempt to run under bash or ksh since have better NetBSD fix | ||||
| - Fix win32/Makefile.gcc for MinGW [Bar-Lev] | ||||
| - Add diagnostic messages when using CROSS_PREFIX in configure | ||||
| - Added --sharedlibdir option to configure [Weigelt] | ||||
| - Use hidden visibility attribute when available [Frysinger] | ||||
|  | ||||
| Changes in 1.2.4.3 (10 Apr 2010) | ||||
| - Only use CROSS_PREFIX in configure for ar and ranlib if they exist | ||||
| - Use CROSS_PREFIX for nm [Bar-Lev] | ||||
| - Assume _LARGEFILE64_SOURCE defined is equivalent to true | ||||
| - Avoid use of undefined symbols in #if with && and || | ||||
| - Make *64 prototypes in gzguts.h consistent with functions | ||||
| - Add -shared load option for MinGW in configure [Bowler] | ||||
| - Move z_off64_t to public interface, use instead of off64_t | ||||
| - Remove ! from shell test in configure (not portable to Solaris) | ||||
| - Change +0 macro tests to -0 for possibly increased portability | ||||
|  | ||||
| Changes in 1.2.4.2 (9 Apr 2010) | ||||
| - Add consistent carriage returns to readme.txt's in masmx86 and masmx64 | ||||
| - Really provide prototypes for *64 functions when building without LFS | ||||
| @@ -140,7 +177,7 @@ Changes in 1.2.3.6 (17 Jan 2010) | ||||
| - Correct email address in configure for system options | ||||
| - Update make_vms.com and add make_vms.com to contrib/minizip [Zinser] | ||||
| - Update zlib.map [Brown] | ||||
| - Fix Makefile.in for Solaris 10 make of example64 and minizip64 [T<EFBFBD>r<EFBFBD>k] | ||||
| - Fix Makefile.in for Solaris 10 make of example64 and minizip64 [Torok] | ||||
| - Apply various fixes to CMakeLists.txt [Lowman] | ||||
| - Add checks on len in gzread() and gzwrite() | ||||
| - Add error message for no more room for gzungetc() | ||||
|   | ||||
							
								
								
									
										13
									
								
								Makefile.in
									
									
									
									
									
								
							
							
						
						
									
										13
									
								
								Makefile.in
									
									
									
									
									
								
							| @@ -25,14 +25,14 @@ CFLAGS=-O | ||||
| #           -Wstrict-prototypes -Wmissing-prototypes | ||||
|  | ||||
| SFLAGS=-O | ||||
|  | ||||
| LDFLAGS= | ||||
| TEST_LDFLAGS=-L. libz.a | ||||
| LDSHARED=$(CC) | ||||
| CPP=$(CC) -E | ||||
|  | ||||
| STATICLIB=libz.a | ||||
| SHAREDLIB=libz.so | ||||
| SHAREDLIBV=libz.so.1.2.4.2 | ||||
| SHAREDLIBV=libz.so.1.2.5 | ||||
| SHAREDLIBM=libz.so.1 | ||||
| LIBS=$(STATICLIB) $(SHAREDLIBV) | ||||
|  | ||||
| @@ -47,6 +47,7 @@ EXE= | ||||
| prefix = /usr/local | ||||
| exec_prefix = ${prefix} | ||||
| libdir = ${exec_prefix}/lib | ||||
| sharedlibdir = ${libdir} | ||||
| includedir = ${prefix}/include | ||||
| mandir = ${prefix}/share/man | ||||
| man3dir = ${mandir}/man3 | ||||
| @@ -131,7 +132,7 @@ minigzip64.o: minigzip.c zlib.h zconf.h | ||||
| .SUFFIXES: .lo | ||||
|  | ||||
| .c.lo: | ||||
| 	-@if [ ! -d objs ]; then mkdir objs; fi | ||||
| 	-@mkdir objs 2>/dev/null || test -d objs | ||||
| 	$(CC) $(SFLAGS) -DPIC -c -o objs/$*.o $< | ||||
| 	-@mv objs/$*.o $@ | ||||
|  | ||||
| @@ -163,12 +164,14 @@ minigzip64$(EXE): minigzip64.o $(STATICLIB) | ||||
| install-libs: $(LIBS) | ||||
| 	-@if [ ! -d $(DESTDIR)$(exec_prefix)  ]; then mkdir -p $(DESTDIR)$(exec_prefix); fi | ||||
| 	-@if [ ! -d $(DESTDIR)$(libdir)       ]; then mkdir -p $(DESTDIR)$(libdir); fi | ||||
| 	-@if [ ! -d $(DESTDIR)$(sharedlibdir) ]; then mkdir -p $(DESTDIR)$(sharedlibdir); fi | ||||
| 	-@if [ ! -d $(DESTDIR)$(man3dir)      ]; then mkdir -p $(DESTDIR)$(man3dir); fi | ||||
| 	-@if [ ! -d $(DESTDIR)$(pkgconfigdir) ]; then mkdir -p $(DESTDIR)$(pkgconfigdir); fi | ||||
| 	cp $(LIBS) $(DESTDIR)$(libdir) | ||||
| 	cp $(STATICLIB) $(DESTDIR)$(libdir) | ||||
| 	cp $(SHAREDLIBV) $(DESTDIR)$(sharedlibdir) | ||||
| 	cd $(DESTDIR)$(libdir); chmod u=rw,go=r $(STATICLIB) | ||||
| 	-@(cd $(DESTDIR)$(libdir); $(RANLIB) libz.a || true) >/dev/null 2>&1 | ||||
| 	-@cd $(DESTDIR)$(libdir); if test "$(SHAREDLIBV)" -a -f $(SHAREDLIBV); then \ | ||||
| 	-@cd $(DESTDIR)$(sharedlibdir); if test "$(SHAREDLIBV)" -a -f $(SHAREDLIBV); then \ | ||||
| 	  chmod 755 $(SHAREDLIBV); \ | ||||
| 	  rm -f $(SHAREDLIB) $(SHAREDLIBM); \ | ||||
| 	  ln -s $(SHAREDLIBV) $(SHAREDLIB); \ | ||||
|   | ||||
							
								
								
									
										4
									
								
								README
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								README
									
									
									
									
									
								
							| @@ -1,6 +1,6 @@ | ||||
| ZLIB DATA COMPRESSION LIBRARY | ||||
|  | ||||
| zlib 1.2.4.2 is a general purpose data compression library.  All the code is | ||||
| zlib 1.2.5 is a general purpose data compression library.  All the code is | ||||
| thread safe.  The data format used by the zlib library is described by RFCs | ||||
| (Request for Comments) 1950 to 1952 in the files | ||||
| http://www.ietf.org/rfc/rfc1950.txt (zlib format), rfc1951.txt (deflate format) | ||||
| @@ -31,7 +31,7 @@ Mark Nelson <markn@ieee.org> wrote an article about zlib for the Jan.  1997 | ||||
| issue of Dr.  Dobb's Journal; a copy of the article is available at | ||||
| http://marknelson.us/1997/01/01/zlib-engine/ . | ||||
|  | ||||
| The changes made in version 1.2.4.2 are documented in the file ChangeLog. | ||||
| The changes made in version 1.2.5 are documented in the file ChangeLog. | ||||
|  | ||||
| Unsupported third party contributions are provided in directory contrib/ . | ||||
|  | ||||
|   | ||||
							
								
								
									
										87
									
								
								configure
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										87
									
								
								configure
									
									
									
									
										vendored
									
									
								
							| @@ -13,26 +13,8 @@ | ||||
| # If you have problems, try without defining CC and CFLAGS before reporting | ||||
| # an error. | ||||
|  | ||||
| # make sure we are running under a compatible shell (stolen from ffmpeg and libnfo) | ||||
| if test "0$ZLIB_CONFIGURE_EXEC" -lt 1; then | ||||
|   unset foo | ||||
|   (: ${foo%%bar}) 2>/dev/null && ! (: ${foo?}) 2>/dev/null | ||||
|   if test "$?" -ne 0; then | ||||
|     ZLIB_CONFIGURE_EXEC=1 | ||||
|     export ZLIB_CONFIGURE_EXEC | ||||
|     type "bash" > /dev/null 2>&1 && exec bash "$0" "$@" | ||||
|     type "ksh" > /dev/null 2>&1 && exec ksh "$0" "$@" | ||||
|     if test -x /usr/xpg4/bin/sh; then | ||||
|       exec /usr/xpg4/bin/sh "$0" "$@" | ||||
|     fi | ||||
| #    echo "No compatible shell script interpreter found." | ||||
| #    exit 1 | ||||
| # we could give up here, but go ahead and give their old sh a try | ||||
|   fi | ||||
| fi | ||||
|  | ||||
| if [ -n "${CHOST}" ]; then | ||||
|     uname="$(echo "${CHOST}" | sed 's/.*-.*-\(.*\)-.*/\1/')" | ||||
|     uname="$(echo "${CHOST}" | sed -e 's/^[^-]*-\([^-]*\)$/\1/' -e 's/^[^-]*-[^-]*-\([^-]*\)$/\1/' -e 's/^[^-]*-[^-]*-\([^-]*\)-.*$/\1/')" | ||||
|     CROSS_PREFIX="${CHOST}-" | ||||
| fi | ||||
|  | ||||
| @@ -42,15 +24,32 @@ VER=`sed -n -e '/VERSION "/s/.*"\(.*\)".*/\1/p' < zlib.h` | ||||
| VER3=`sed -n -e '/VERSION "/s/.*"\([0-9]*\\.[0-9]*\\.[0-9]*\).*/\1/p' < zlib.h` | ||||
| VER2=`sed -n -e '/VERSION "/s/.*"\([0-9]*\\.[0-9]*\)\\..*/\1/p' < zlib.h` | ||||
| VER1=`sed -n -e '/VERSION "/s/.*"\([0-9]*\)\\..*/\1/p' < zlib.h` | ||||
| AR=${AR-"${CROSS_PREFIX}ar"} | ||||
| if "${CROSS_PREFIX}ar" --version >/dev/null 2>/dev/null || test $? -lt 126; then | ||||
|     AR=${AR-"${CROSS_PREFIX}ar"} | ||||
|     test -n "${CROSS_PREFIX}" && echo Using ${AR} | ||||
| else | ||||
|     AR=${AR-"ar"} | ||||
|     test -n "${CROSS_PREFIX}" && echo Using ${AR} | ||||
| fi | ||||
| AR_RC="${AR} rc" | ||||
| RANLIB=${RANLIB-"${CROSS_PREFIX}ranlib"} | ||||
| NM=${NM-"nm"} | ||||
| if "${CROSS_PREFIX}ranlib" --version >/dev/null 2>/dev/null || test $? -lt 126; then | ||||
|     RANLIB=${RANLIB-"${CROSS_PREFIX}ranlib"} | ||||
|     test -n "${CROSS_PREFIX}" && echo Using ${RANLIB} | ||||
| else | ||||
|     RANLIB=${RANLIB-"ranlib"} | ||||
| fi | ||||
| if "${CROSS_PREFIX}nm" --version >/dev/null 2>/dev/null || test $? -lt 126; then | ||||
|     NM=${NM-"${CROSS_PREFIX}nm"} | ||||
|     test -n "${CROSS_PREFIX}" && echo Using ${NM} | ||||
| else | ||||
|     NM=${NM-"nm"} | ||||
| fi | ||||
| LDCONFIG=${LDCONFIG-"ldconfig"} | ||||
| LDSHAREDLIBC="${LDSHAREDLIBC-"-lc"}" | ||||
| LDSHAREDLIBC="${LDSHAREDLIBC--lc}" | ||||
| prefix=${prefix-/usr/local} | ||||
| exec_prefix=${exec_prefix-'${prefix}'} | ||||
| libdir=${libdir-'${exec_prefix}/lib'} | ||||
| sharedlibdir=${sharedlibdir-'${libdir}'} | ||||
| includedir=${includedir-'${prefix}/include'} | ||||
| mandir=${mandir-'${prefix}/share/man'} | ||||
| shared_ext='.so' | ||||
| @@ -67,11 +66,13 @@ case "$1" in | ||||
|     -h* | --help) | ||||
|       echo 'usage:' | ||||
|       echo '  configure [--zprefix] [--prefix=PREFIX]  [--eprefix=EXPREFIX]' | ||||
|       echo '    [--static] [--64] [--libdir=LIBDIR] [--includedir=INCLUDEDIR]' | ||||
|       echo '    [--static] [--64] [--libdir=LIBDIR] [--sharedlibdir=LIBDIR]' | ||||
|       echo '    [--includedir=INCLUDEDIR]' | ||||
|         exit 0 ;; | ||||
|     -p*=* | --prefix=*) prefix=`echo $1 | sed 's/.*=//'`; shift ;; | ||||
|     -e*=* | --eprefix=*) exec_prefix=`echo $1 | sed 's/.*=//'`; shift ;; | ||||
|     -l*=* | --libdir=*) libdir=`echo $1 | sed 's/.*=//'`; shift ;; | ||||
|     --sharedlibdir=*) sharedlibdir=`echo $1 | sed 's/.*=//'`; shift ;; | ||||
|     -i*=* | --includedir=*) includedir=`echo $1 | sed 's/.*=//'`;shift ;; | ||||
|     -u*=* | --uname=*) uname=`echo $1 | sed 's/.*=//'`;shift ;; | ||||
|     -p* | --prefix) prefix="$2"; shift; shift ;; | ||||
| @@ -94,7 +95,7 @@ extern int getchar(); | ||||
| int hello() {return getchar();} | ||||
| EOF | ||||
|  | ||||
| test -z "$CC" && echo Checking for gcc... | ||||
| test -z "$CC" && echo Checking for ${CROSS_PREFIX}gcc... | ||||
| cc=${CC-${CROSS_PREFIX}gcc} | ||||
| cflags=${CFLAGS-"-O3"} | ||||
| # to force the asm version use: CFLAGS="-O3 -DASMV" ./configure | ||||
| @@ -104,8 +105,8 @@ esac | ||||
|  | ||||
| if test "$gcc" -eq 1 && ($cc -c $cflags $test.c) 2>/dev/null; then | ||||
|   CC="$cc" | ||||
|   SFLAGS="${CFLAGS-"-O3"} -fPIC" | ||||
|   CFLAGS="${CFLAGS-"-O3"}" | ||||
|   SFLAGS="${CFLAGS--O3} -fPIC" | ||||
|   CFLAGS="${CFLAGS--O3}" | ||||
|   if test $build64 -eq 1; then | ||||
|     CFLAGS="${CFLAGS} -m64" | ||||
|     SFLAGS="${SFLAGS} -m64" | ||||
| @@ -120,7 +121,12 @@ if test "$gcc" -eq 1 && ($cc -c $cflags $test.c) 2>/dev/null; then | ||||
|   Linux* | linux* | GNU | GNU/* | *BSD | DragonFly) LDSHARED=${LDSHARED-"$cc -shared -Wl,-soname,libz.so.1,--version-script,zlib.map"} ;; | ||||
|   CYGWIN* | Cygwin* | cygwin* | OS/2*) | ||||
|         EXE='.exe' ;; | ||||
|   MINGW*) | ||||
|   MINGW*|mingw*) | ||||
| # temporary bypass | ||||
|         rm -f $test.[co] $test $test$shared_ext | ||||
|         echo "Please use win32/Makefile.gcc instead." | ||||
|         exit 1 | ||||
|         LDSHARED=${LDSHARED-"$cc -shared"} | ||||
|         LDSHAREDLIBC="" | ||||
|         EXE='.exe' ;; | ||||
|   QNX*)  # This is for QNX6. I suppose that the QNX rule below is for QNX2,QNX4 | ||||
| @@ -146,6 +152,7 @@ if test "$gcc" -eq 1 && ($cc -c $cflags $test.c) 2>/dev/null; then | ||||
| else | ||||
|   # find system name and corresponding cc options | ||||
|   CC=${CC-cc} | ||||
|   gcc=0 | ||||
|   if test -z "$uname"; then | ||||
|     uname=`(uname -sr || echo unknown) 2>/dev/null` | ||||
|   fi | ||||
| @@ -503,6 +510,28 @@ EOF | ||||
|   fi | ||||
| fi | ||||
|  | ||||
| if test "$gcc" -eq 1; then | ||||
|   cat > $test.c <<EOF | ||||
| #if ((__GNUC__-0) * 10 + __GNUC_MINOR__-0 >= 33) | ||||
| #  define ZLIB_INTERNAL __attribute__((visibility ("hidden"))) | ||||
| #else | ||||
| #  define ZLIB_INTERNAL | ||||
| #endif | ||||
| int ZLIB_INTERNAL foo; | ||||
| int main() | ||||
| { | ||||
|   return 0; | ||||
| } | ||||
| EOF | ||||
|   if test "`($CC -c $CFLAGS $test.c) 2>&1`" = ""; then | ||||
|     echo "Checking for attribute(visibility) support... Yes." | ||||
|   else | ||||
|     CFLAGS="$CFLAGS -DNO_VIZ" | ||||
|     SFLAGS="$SFLAGS -DNO_VIZ" | ||||
|     echo "Checking for attribute(visibility) support... No." | ||||
|   fi | ||||
| fi | ||||
|  | ||||
| CPP=${CPP-"$CC -E"} | ||||
| case $CFLAGS in | ||||
|   *ASMV*) | ||||
| @@ -536,6 +565,7 @@ sed < Makefile.in " | ||||
| /^prefix *=/s#=.*#=$prefix# | ||||
| /^exec_prefix *=/s#=.*#=$exec_prefix# | ||||
| /^libdir *=/s#=.*#=$libdir# | ||||
| /^sharedlibdir *=/s#=.*#=$sharedlibdir# | ||||
| /^includedir *=/s#=.*#=$includedir# | ||||
| /^mandir *=/s#=.*#=$mandir# | ||||
| /^all: */s#:.*#: $ALL# | ||||
| @@ -557,6 +587,7 @@ sed < zlib.pc.in " | ||||
| /^prefix *=/s#=.*#=$prefix# | ||||
| /^exec_prefix *=/s#=.*#=$exec_prefix# | ||||
| /^libdir *=/s#=.*#=$libdir# | ||||
| /^sharedlibdir *=/s#=.*#=$sharedlibdir# | ||||
| /^includedir *=/s#=.*#=$includedir# | ||||
| /^mandir *=/s#=.*#=$mandir# | ||||
| /^LDFLAGS *=/s#=.*#=$LDFLAGS# | ||||
|   | ||||
| @@ -152,7 +152,7 @@ procedure DecompressToUserBuf(const InBuf: Pointer; InBytes: Integer; | ||||
|   const OutBuf: Pointer; BufSize: Integer); | ||||
|  | ||||
| const | ||||
|   zlib_version = '1.2.4.2'; | ||||
|   zlib_version = '1.2.5'; | ||||
|  | ||||
| type | ||||
|   EZlibError = class(Exception); | ||||
|   | ||||
| @@ -156,7 +156,7 @@ namespace DotZLibTests | ||||
|         public void Info_Version() | ||||
|         { | ||||
|             Info info = new Info(); | ||||
|             Assert.AreEqual("1.2.4.2", Info.Version); | ||||
|             Assert.AreEqual("1.2.5", Info.Version); | ||||
|             Assert.AreEqual(32, info.SizeOfUInt); | ||||
|             Assert.AreEqual(32, info.SizeOfULong); | ||||
|             Assert.AreEqual(32, info.SizeOfPointer); | ||||
| @@ -271,4 +271,4 @@ namespace DotZLibTests | ||||
| 	} | ||||
| } | ||||
|  | ||||
| #endif | ||||
| #endif | ||||
|   | ||||
| @@ -9,7 +9,7 @@ | ||||
| #define MAXBITS 15 | ||||
|  | ||||
| const char inflate9_copyright[] = | ||||
|    " inflate9 1.2.4.2 Copyright 1995-2010 Mark Adler "; | ||||
|    " inflate9 1.2.5 Copyright 1995-2010 Mark Adler "; | ||||
| /* | ||||
|   If you use the zlib library in a product, an acknowledgment is welcome | ||||
|   in the documentation of your product. If for some reason you cannot | ||||
| @@ -64,7 +64,7 @@ unsigned short FAR *work; | ||||
|     static const unsigned short lext[31] = { /* Length codes 257..285 extra */ | ||||
|         128, 128, 128, 128, 128, 128, 128, 128, 129, 129, 129, 129, | ||||
|         130, 130, 130, 130, 131, 131, 131, 131, 132, 132, 132, 132, | ||||
|         133, 133, 133, 133, 144, 202, 75}; | ||||
|         133, 133, 133, 133, 144, 73, 195}; | ||||
|     static const unsigned short dbase[32] = { /* Distance codes 0..31 base */ | ||||
|         1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, | ||||
|         65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073, | ||||
|   | ||||
| @@ -10,7 +10,7 @@ unit zlibpas; | ||||
| interface | ||||
|  | ||||
| const | ||||
|   ZLIB_VERSION = '1.2.4.2'; | ||||
|   ZLIB_VERSION = '1.2.5'; | ||||
|  | ||||
| type | ||||
|   alloc_func = function(opaque: Pointer; items, size: Integer): Pointer; | ||||
|   | ||||
| @@ -2,8 +2,8 @@ | ||||
|  | ||||
| #define IDR_VERSION1  1 | ||||
| IDR_VERSION1	VERSIONINFO	MOVEABLE IMPURE LOADONCALL DISCARDABLE | ||||
|   FILEVERSION	 1,2,4,2 | ||||
|   PRODUCTVERSION 1,2,4,2 | ||||
|   FILEVERSION	 1,2,5,0 | ||||
|   PRODUCTVERSION 1,2,5,0 | ||||
|   FILEFLAGSMASK	VS_FFI_FILEFLAGSMASK | ||||
|   FILEFLAGS	0 | ||||
|   FILEOS	VOS_DOS_WINDOWS32 | ||||
| @@ -17,7 +17,7 @@ BEGIN | ||||
|  | ||||
|     BEGIN | ||||
|       VALUE "FileDescription", "zlib data compression and ZIP file I/O library\0" | ||||
|       VALUE "FileVersion",	"1.2.4.2\0" | ||||
|       VALUE "FileVersion",	"1.2.5\0" | ||||
|       VALUE "InternalName",	"zlib\0" | ||||
|       VALUE "OriginalFilename",	"zlib.dll\0" | ||||
|       VALUE "ProductName",	"ZLib.DLL\0" | ||||
|   | ||||
| @@ -2,8 +2,8 @@ | ||||
|  | ||||
| #define IDR_VERSION1  1 | ||||
| IDR_VERSION1	VERSIONINFO	MOVEABLE IMPURE LOADONCALL DISCARDABLE | ||||
|   FILEVERSION	 1,2,4,2 | ||||
|   PRODUCTVERSION 1,2,4,2 | ||||
|   FILEVERSION	 1,2,5,0 | ||||
|   PRODUCTVERSION 1,2,5,0 | ||||
|   FILEFLAGSMASK	VS_FFI_FILEFLAGSMASK | ||||
|   FILEFLAGS	0 | ||||
|   FILEOS	VOS_DOS_WINDOWS32 | ||||
| @@ -17,7 +17,7 @@ BEGIN | ||||
|  | ||||
|     BEGIN | ||||
|       VALUE "FileDescription", "zlib data compression and ZIP file I/O library\0" | ||||
|       VALUE "FileVersion",	"1.2.4.2\0" | ||||
|       VALUE "FileVersion",	"1.2.5\0" | ||||
|       VALUE "InternalName",	"zlib\0" | ||||
|       VALUE "OriginalFilename",	"zlib.dll\0" | ||||
|       VALUE "ProductName",	"ZLib.DLL\0" | ||||
|   | ||||
							
								
								
									
										2
									
								
								crc32.c
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								crc32.c
									
									
									
									
									
								
							| @@ -1,5 +1,5 @@ | ||||
| /* crc32.c -- compute the CRC-32 of a data stream | ||||
|  * Copyright (C) 1995-2006 Mark Adler | ||||
|  * Copyright (C) 1995-2006, 2010 Mark Adler | ||||
|  * For conditions of distribution and use, see copyright notice in zlib.h | ||||
|  * | ||||
|  * Thanks to Rodney Brown <rbrown64@csc.com.au> for his contribution of faster | ||||
|   | ||||
| @@ -52,7 +52,7 @@ | ||||
| #include "deflate.h" | ||||
|  | ||||
| const char deflate_copyright[] = | ||||
|    " deflate 1.2.4.2 Copyright 1995-2010 Jean-loup Gailly and Mark Adler "; | ||||
|    " deflate 1.2.5 Copyright 1995-2010 Jean-loup Gailly and Mark Adler "; | ||||
| /* | ||||
|   If you use the zlib library in a product, an acknowledgment is welcome | ||||
|   in the documentation of your product. If for some reason you cannot | ||||
|   | ||||
							
								
								
									
										24
									
								
								deflate.h
									
									
									
									
									
								
							
							
						
						
									
										24
									
								
								deflate.h
									
									
									
									
									
								
							| @@ -1,5 +1,5 @@ | ||||
| /* deflate.h -- internal compression state | ||||
|  * Copyright (C) 1995-2009 Jean-loup Gailly | ||||
|  * Copyright (C) 1995-2010 Jean-loup Gailly | ||||
|  * For conditions of distribution and use, see copyright notice in zlib.h | ||||
|  */ | ||||
|  | ||||
| @@ -290,13 +290,13 @@ typedef struct internal_state { | ||||
|    memory checker errors from longest match routines */ | ||||
|  | ||||
|         /* in trees.c */ | ||||
| void _tr_init         OF((deflate_state *s)); | ||||
| int  _tr_tally        OF((deflate_state *s, unsigned dist, unsigned lc)); | ||||
| void _tr_flush_block  OF((deflate_state *s, charf *buf, ulg stored_len, | ||||
|                           int last)); | ||||
| void _tr_align        OF((deflate_state *s)); | ||||
| void _tr_stored_block OF((deflate_state *s, charf *buf, ulg stored_len, | ||||
|                           int last)); | ||||
| void ZLIB_INTERNAL _tr_init OF((deflate_state *s)); | ||||
| int ZLIB_INTERNAL _tr_tally OF((deflate_state *s, unsigned dist, unsigned lc)); | ||||
| void ZLIB_INTERNAL _tr_flush_block OF((deflate_state *s, charf *buf, | ||||
|                         ulg stored_len, int last)); | ||||
| void ZLIB_INTERNAL _tr_align OF((deflate_state *s)); | ||||
| void ZLIB_INTERNAL _tr_stored_block OF((deflate_state *s, charf *buf, | ||||
|                         ulg stored_len, int last)); | ||||
|  | ||||
| #define d_code(dist) \ | ||||
|    ((dist) < 256 ? _dist_code[dist] : _dist_code[256+((dist)>>7)]) | ||||
| @@ -309,11 +309,11 @@ void _tr_stored_block OF((deflate_state *s, charf *buf, ulg stored_len, | ||||
| /* Inline versions of _tr_tally for speed: */ | ||||
|  | ||||
| #if defined(GEN_TREES_H) || !defined(STDC) | ||||
|   extern uch _length_code[]; | ||||
|   extern uch _dist_code[]; | ||||
|   extern uch ZLIB_INTERNAL _length_code[]; | ||||
|   extern uch ZLIB_INTERNAL _dist_code[]; | ||||
| #else | ||||
|   extern const uch _length_code[]; | ||||
|   extern const uch _dist_code[]; | ||||
|   extern const uch ZLIB_INTERNAL _length_code[]; | ||||
|   extern const uch ZLIB_INTERNAL _dist_code[]; | ||||
| #endif | ||||
|  | ||||
| # define _tr_tally_lit(s, c, flush) \ | ||||
|   | ||||
							
								
								
									
										28
									
								
								gzguts.h
									
									
									
									
									
								
							
							
						
						
									
										28
									
								
								gzguts.h
									
									
									
									
									
								
							| @@ -3,7 +3,7 @@ | ||||
|  * For conditions of distribution and use, see copyright notice in zlib.h | ||||
|  */ | ||||
|  | ||||
| #if _LARGEFILE64_SOURCE | ||||
| #ifdef _LARGEFILE64_SOURCE | ||||
| #  ifndef _LARGEFILE_SOURCE | ||||
| #    define _LARGEFILE_SOURCE 1 | ||||
| #  endif | ||||
| @@ -12,7 +12,11 @@ | ||||
| #  endif | ||||
| #endif | ||||
|  | ||||
| #define ZLIB_INTERNAL | ||||
| #if ((__GNUC__-0) * 10 + __GNUC_MINOR__-0 >= 33) && !defined(NO_VIZ) | ||||
| #  define ZLIB_INTERNAL __attribute__((visibility ("hidden"))) | ||||
| #else | ||||
| #  define ZLIB_INTERNAL | ||||
| #endif | ||||
|  | ||||
| #include <stdio.h> | ||||
| #include "zlib.h" | ||||
| @@ -56,18 +60,12 @@ | ||||
| #  endif | ||||
| #endif | ||||
|  | ||||
| #if _LARGEFILE64_SOURCE | ||||
| #  define z_off64_t off64_t | ||||
| #else | ||||
| #  define z_off64_t z_off_t | ||||
| #endif | ||||
|  | ||||
| /* provide prototypes for these when building zlib without LFS */ | ||||
| #if _LARGEFILE64_SOURCE+0 != 1 || _LFS64_LARGEFILE+0 != 1 | ||||
| #if !defined(_LARGEFILE64_SOURCE) || _LFS64_LARGEFILE-0 == 0 | ||||
|     ZEXTERN gzFile ZEXPORT gzopen64 OF((const char *, const char *)); | ||||
|     ZEXTERN z_off_t ZEXPORT gzseek64 OF((gzFile, off_t, int)); | ||||
|     ZEXTERN z_off_t ZEXPORT gztell64 OF((gzFile)); | ||||
|     ZEXTERN z_off_t ZEXPORT gzoffset64 OF((gzFile)); | ||||
|     ZEXTERN z_off64_t ZEXPORT gzseek64 OF((gzFile, z_off64_t, int)); | ||||
|     ZEXTERN z_off64_t ZEXPORT gztell64 OF((gzFile)); | ||||
|     ZEXTERN z_off64_t ZEXPORT gzoffset64 OF((gzFile)); | ||||
| #endif | ||||
|  | ||||
| /* default i/o buffer size -- double this for output when reading */ | ||||
| @@ -118,9 +116,9 @@ typedef struct { | ||||
| typedef gz_state FAR *gz_statep; | ||||
|  | ||||
| /* shared functions */ | ||||
| ZEXTERN void ZEXPORT gz_error OF((gz_statep, int, const char *)); | ||||
| void ZLIB_INTERNAL gz_error OF((gz_statep, int, const char *)); | ||||
| #if defined UNDER_CE | ||||
| ZEXTERN char ZEXPORT *gz_strwinerror OF((DWORD error)); | ||||
| char ZLIB_INTERNAL *gz_strwinerror OF((DWORD error)); | ||||
| #endif | ||||
|  | ||||
| /* GT_OFF(x), where x is an unsigned value, is true if x > maximum z_off64_t | ||||
| @@ -129,6 +127,6 @@ ZEXTERN char ZEXPORT *gz_strwinerror OF((DWORD error)); | ||||
| #ifdef INT_MAX | ||||
| #  define GT_OFF(x) (sizeof(int) == sizeof(z_off64_t) && (x) > INT_MAX) | ||||
| #else | ||||
| ZEXTERN unsigned ZEXPORT gz_intmax OF((void)); | ||||
| unsigned ZLIB_INTERNAL gz_intmax OF((void)); | ||||
| #  define GT_OFF(x) (sizeof(int) == sizeof(z_off64_t) && (x) > gz_intmax()) | ||||
| #endif | ||||
|   | ||||
							
								
								
									
										8
									
								
								gzlib.c
									
									
									
									
									
								
							
							
						
						
									
										8
									
								
								gzlib.c
									
									
									
									
									
								
							| @@ -5,7 +5,7 @@ | ||||
|  | ||||
| #include "gzguts.h" | ||||
|  | ||||
| #if _LARGEFILE64_SOURCE && _LFS64_LARGEFILE | ||||
| #if defined(_LARGEFILE64_SOURCE) && _LFS64_LARGEFILE-0 | ||||
| #  define LSEEK lseek64 | ||||
| #else | ||||
| #  define LSEEK lseek | ||||
| @@ -26,7 +26,7 @@ local gzFile gz_open OF((const char *, int, const char *)); | ||||
|  | ||||
|    The gz_strwinerror function does not change the current setting of | ||||
|    GetLastError. */ | ||||
| char ZEXPORT *gz_strwinerror (error) | ||||
| char ZLIB_INTERNAL *gz_strwinerror (error) | ||||
|      DWORD error; | ||||
| { | ||||
|     static char buf[1024]; | ||||
| @@ -482,7 +482,7 @@ void ZEXPORT gzclearerr(file) | ||||
|    memory).  Simply save the error message as a static string.  If there is an | ||||
|    allocation failure constructing the error message, then convert the error to | ||||
|    out of memory. */ | ||||
| void ZEXPORT gz_error(state, err, msg) | ||||
| void ZLIB_INTERNAL gz_error(state, err, msg) | ||||
|     gz_statep state; | ||||
|     int err; | ||||
|     const char *msg; | ||||
| @@ -522,7 +522,7 @@ void ZEXPORT gz_error(state, err, msg) | ||||
|    available) -- we need to do this to cover cases where 2's complement not | ||||
|    used, since C standard permits 1's complement and sign-bit representations, | ||||
|    otherwise we could just use ((unsigned)-1) >> 1 */ | ||||
| unsigned ZEXPORT gz_intmax() | ||||
| unsigned ZLIB_INTERNAL gz_intmax() | ||||
| { | ||||
|     unsigned p, q; | ||||
|  | ||||
|   | ||||
| @@ -1,5 +1,5 @@ | ||||
| /* inffast.c -- fast decoding | ||||
|  * Copyright (C) 1995-2008 Mark Adler | ||||
|  * Copyright (C) 1995-2008, 2010 Mark Adler | ||||
|  * For conditions of distribution and use, see copyright notice in zlib.h | ||||
|  */ | ||||
|  | ||||
| @@ -64,7 +64,7 @@ | ||||
|       requires strm->avail_out >= 258 for each loop to avoid checking for | ||||
|       output space. | ||||
|  */ | ||||
| void inflate_fast(strm, start) | ||||
| void ZLIB_INTERNAL inflate_fast(strm, start) | ||||
| z_streamp strm; | ||||
| unsigned start;         /* inflate()'s starting value for strm->avail_out */ | ||||
| { | ||||
|   | ||||
| @@ -1,5 +1,5 @@ | ||||
| /* inffast.h -- header to use inffast.c | ||||
|  * Copyright (C) 1995-2003 Mark Adler | ||||
|  * Copyright (C) 1995-2003, 2010 Mark Adler | ||||
|  * For conditions of distribution and use, see copyright notice in zlib.h | ||||
|  */ | ||||
|  | ||||
| @@ -8,4 +8,4 @@ | ||||
|    subject to change. Applications should only use zlib.h. | ||||
|  */ | ||||
|  | ||||
| void inflate_fast OF((z_streamp strm, unsigned start)); | ||||
| void ZLIB_INTERNAL inflate_fast OF((z_streamp strm, unsigned start)); | ||||
|   | ||||
| @@ -9,7 +9,7 @@ | ||||
| #define MAXBITS 15 | ||||
|  | ||||
| const char inflate_copyright[] = | ||||
|    " inflate 1.2.4.2 Copyright 1995-2010 Mark Adler "; | ||||
|    " inflate 1.2.5 Copyright 1995-2010 Mark Adler "; | ||||
| /* | ||||
|   If you use the zlib library in a product, an acknowledgment is welcome | ||||
|   in the documentation of your product. If for some reason you cannot | ||||
| @@ -29,7 +29,7 @@ const char inflate_copyright[] = | ||||
|    table index bits.  It will differ if the request is greater than the | ||||
|    longest code or if it is less than the shortest code. | ||||
|  */ | ||||
| int inflate_table(type, lens, codes, table, bits, work) | ||||
| int ZLIB_INTERNAL inflate_table(type, lens, codes, table, bits, work) | ||||
| codetype type; | ||||
| unsigned short FAR *lens; | ||||
| unsigned codes; | ||||
| @@ -62,7 +62,7 @@ unsigned short FAR *work; | ||||
|         35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258, 0, 0}; | ||||
|     static const unsigned short lext[31] = { /* Length codes 257..285 extra */ | ||||
|         16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17, 18, 18, 18, 18, | ||||
|         19, 19, 19, 19, 20, 20, 20, 20, 21, 21, 21, 21, 16, 202, 75}; | ||||
|         19, 19, 19, 19, 20, 20, 20, 20, 21, 21, 21, 21, 16, 73, 195}; | ||||
|     static const unsigned short dbase[32] = { /* Distance codes 0..29 base */ | ||||
|         1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193, | ||||
|         257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145, | ||||
|   | ||||
| @@ -1,5 +1,5 @@ | ||||
| /* inftrees.h -- header to use inftrees.c | ||||
|  * Copyright (C) 1995-2005 Mark Adler | ||||
|  * Copyright (C) 1995-2005, 2010 Mark Adler | ||||
|  * For conditions of distribution and use, see copyright notice in zlib.h | ||||
|  */ | ||||
|  | ||||
| @@ -57,6 +57,6 @@ typedef enum { | ||||
|     DISTS | ||||
| } codetype; | ||||
|  | ||||
| extern int inflate_table OF((codetype type, unsigned short FAR *lens, | ||||
| int ZLIB_INTERNAL inflate_table OF((codetype type, unsigned short FAR *lens, | ||||
|                              unsigned codes, code FAR * FAR *table, | ||||
|                              unsigned FAR *bits, unsigned short FAR *work)); | ||||
|   | ||||
| @@ -53,7 +53,7 @@ | ||||
| #  include <unix.h> /* for fileno */ | ||||
| #endif | ||||
|  | ||||
| #if !defined(Z_HAVE_UNISTD_H) && _LARGEFILE64_SOURCE+0 != 1 | ||||
| #if !defined(Z_HAVE_UNISTD_H) && !defined(_LARGEFILE64_SOURCE) | ||||
| #ifndef WIN32 /* unlink already in stdio.h for WIN32 */ | ||||
|   extern int unlink OF((const char *)); | ||||
| #endif | ||||
|   | ||||
| @@ -25,10 +25,10 @@ | ||||
|       <QPG:Files> | ||||
|          <QPG:Add file="../zconf.h" install="/opt/include/" user="root:sys" permission="644"/> | ||||
|          <QPG:Add file="../zlib.h" install="/opt/include/" user="root:sys" permission="644"/> | ||||
|          <QPG:Add file="../libz.so.1.2.4.2" install="/opt/lib/" user="root:bin" permission="644"/> | ||||
|          <QPG:Add file="libz.so" install="/opt/lib/" component="dev" filetype="symlink" linkto="libz.so.1.2.4.2"/> | ||||
|          <QPG:Add file="libz.so.1" install="/opt/lib/" filetype="symlink" linkto="libz.so.1.2.4.2"/> | ||||
|          <QPG:Add file="../libz.so.1.2.4.2" install="/opt/lib/" component="slib"/> | ||||
|          <QPG:Add file="../libz.so.1.2.5" install="/opt/lib/" user="root:bin" permission="644"/> | ||||
|          <QPG:Add file="libz.so" install="/opt/lib/" component="dev" filetype="symlink" linkto="libz.so.1.2.5"/> | ||||
|          <QPG:Add file="libz.so.1" install="/opt/lib/" filetype="symlink" linkto="libz.so.1.2.5"/> | ||||
|          <QPG:Add file="../libz.so.1.2.5" install="/opt/lib/" component="slib"/> | ||||
|       </QPG:Files> | ||||
|  | ||||
|       <QPG:PackageFilter> | ||||
| @@ -63,7 +63,7 @@ | ||||
|             </QPM:ProductDescription> | ||||
|  | ||||
|             <QPM:ReleaseDescription> | ||||
|                <QPM:ReleaseVersion>1.2.4.2</QPM:ReleaseVersion> | ||||
|                <QPM:ReleaseVersion>1.2.5</QPM:ReleaseVersion> | ||||
|                <QPM:ReleaseUrgency>Medium</QPM:ReleaseUrgency> | ||||
|                <QPM:ReleaseStability>Stable</QPM:ReleaseStability> | ||||
|                <QPM:ReleaseNoteMinor></QPM:ReleaseNoteMinor> | ||||
|   | ||||
| @@ -1,6 +1,6 @@ | ||||
| <?xml version="1.0" ?> | ||||
| <package name="zlib" version="1.2.4.2"> | ||||
|     <library name="zlib" dlversion="1.2.4.2" dlname="z"> | ||||
| <package name="zlib" version="1.2.5"> | ||||
|     <library name="zlib" dlversion="1.2.5" dlname="z"> | ||||
| 	<property name="description"> zip compression library </property> | ||||
| 	<property name="include-target-dir" value="$(@PACKAGE/install-includedir)" /> | ||||
|  | ||||
|   | ||||
							
								
								
									
										17
									
								
								trees.c
									
									
									
									
									
								
							
							
						
						
									
										17
									
								
								trees.c
									
									
									
									
									
								
							| @@ -1,5 +1,5 @@ | ||||
| /* trees.c -- output deflated data using Huffman coding | ||||
|  * Copyright (C) 1995-2009 Jean-loup Gailly | ||||
|  * Copyright (C) 1995-2010 Jean-loup Gailly | ||||
|  * detect_data_type() function provided freely by Cosmin Truta, 2006 | ||||
|  * For conditions of distribution and use, see copyright notice in zlib.h | ||||
|  */ | ||||
| @@ -351,13 +351,14 @@ void gen_trees_header() | ||||
|                 static_dtree[i].Len, SEPARATOR(i, D_CODES-1, 5)); | ||||
|     } | ||||
|  | ||||
|     fprintf(header, "const uch _dist_code[DIST_CODE_LEN] = {\n"); | ||||
|     fprintf(header, "const uch ZLIB_INTERNAL _dist_code[DIST_CODE_LEN] = {\n"); | ||||
|     for (i = 0; i < DIST_CODE_LEN; i++) { | ||||
|         fprintf(header, "%2u%s", _dist_code[i], | ||||
|                 SEPARATOR(i, DIST_CODE_LEN-1, 20)); | ||||
|     } | ||||
|  | ||||
|     fprintf(header, "const uch _length_code[MAX_MATCH-MIN_MATCH+1]= {\n"); | ||||
|     fprintf(header, | ||||
|         "const uch ZLIB_INTERNAL _length_code[MAX_MATCH-MIN_MATCH+1]= {\n"); | ||||
|     for (i = 0; i < MAX_MATCH-MIN_MATCH+1; i++) { | ||||
|         fprintf(header, "%2u%s", _length_code[i], | ||||
|                 SEPARATOR(i, MAX_MATCH-MIN_MATCH, 20)); | ||||
| @@ -382,7 +383,7 @@ void gen_trees_header() | ||||
| /* =========================================================================== | ||||
|  * Initialize the tree data structures for a new zlib stream. | ||||
|  */ | ||||
| void _tr_init(s) | ||||
| void ZLIB_INTERNAL _tr_init(s) | ||||
|     deflate_state *s; | ||||
| { | ||||
|     tr_static_init(); | ||||
| @@ -867,7 +868,7 @@ local void send_all_trees(s, lcodes, dcodes, blcodes) | ||||
| /* =========================================================================== | ||||
|  * Send a stored block | ||||
|  */ | ||||
| void _tr_stored_block(s, buf, stored_len, last) | ||||
| void ZLIB_INTERNAL _tr_stored_block(s, buf, stored_len, last) | ||||
|     deflate_state *s; | ||||
|     charf *buf;       /* input block */ | ||||
|     ulg stored_len;   /* length of input block */ | ||||
| @@ -892,7 +893,7 @@ void _tr_stored_block(s, buf, stored_len, last) | ||||
|  * To simplify the code, we assume the worst case of last real code encoded | ||||
|  * on one bit only. | ||||
|  */ | ||||
| void _tr_align(s) | ||||
| void ZLIB_INTERNAL _tr_align(s) | ||||
|     deflate_state *s; | ||||
| { | ||||
|     send_bits(s, STATIC_TREES<<1, 3); | ||||
| @@ -921,7 +922,7 @@ void _tr_align(s) | ||||
|  * Determine the best encoding for the current block: dynamic trees, static | ||||
|  * trees or store, and output the encoded block to the zip file. | ||||
|  */ | ||||
| void _tr_flush_block(s, buf, stored_len, last) | ||||
| void ZLIB_INTERNAL _tr_flush_block(s, buf, stored_len, last) | ||||
|     deflate_state *s; | ||||
|     charf *buf;       /* input block, or NULL if too old */ | ||||
|     ulg stored_len;   /* length of input block */ | ||||
| @@ -1022,7 +1023,7 @@ void _tr_flush_block(s, buf, stored_len, last) | ||||
|  * Save the match info and tally the frequency counts. Return true if | ||||
|  * the current block must be flushed. | ||||
|  */ | ||||
| int _tr_tally (s, dist, lc) | ||||
| int ZLIB_INTERNAL _tr_tally (s, dist, lc) | ||||
|     deflate_state *s; | ||||
|     unsigned dist;  /* distance of matched string */ | ||||
|     unsigned lc;    /* match length-MIN_MATCH or unmatched char (if dist==0) */ | ||||
|   | ||||
							
								
								
									
										4
									
								
								trees.h
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								trees.h
									
									
									
									
									
								
							| @@ -70,7 +70,7 @@ local const ct_data static_dtree[D_CODES] = { | ||||
| {{19},{ 5}}, {{11},{ 5}}, {{27},{ 5}}, {{ 7},{ 5}}, {{23},{ 5}} | ||||
| }; | ||||
|  | ||||
| const uch _dist_code[DIST_CODE_LEN] = { | ||||
| const uch ZLIB_INTERNAL _dist_code[DIST_CODE_LEN] = { | ||||
|  0,  1,  2,  3,  4,  4,  5,  5,  6,  6,  6,  6,  7,  7,  7,  7,  8,  8,  8,  8, | ||||
|  8,  8,  8,  8,  9,  9,  9,  9,  9,  9,  9,  9, 10, 10, 10, 10, 10, 10, 10, 10, | ||||
| 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, | ||||
| @@ -99,7 +99,7 @@ const uch _dist_code[DIST_CODE_LEN] = { | ||||
| 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29 | ||||
| }; | ||||
|  | ||||
| const uch _length_code[MAX_MATCH-MIN_MATCH+1]= { | ||||
| const uch ZLIB_INTERNAL _length_code[MAX_MATCH-MIN_MATCH+1]= { | ||||
|  0,  1,  2,  3,  4,  5,  6,  7,  8,  8,  9,  9, 10, 10, 11, 11, 12, 12, 12, 12, | ||||
| 13, 13, 13, 13, 14, 14, 14, 14, 15, 15, 15, 15, 16, 16, 16, 16, 16, 16, 16, 16, | ||||
| 17, 17, 17, 17, 17, 17, 17, 17, 18, 18, 18, 18, 18, 18, 18, 18, 19, 19, 19, 19, | ||||
|   | ||||
| @@ -27,18 +27,24 @@ STATICLIB = libz.a | ||||
| SHAREDLIB = zlib1.dll | ||||
| IMPLIB    = libzdll.a | ||||
|  | ||||
| # | ||||
| # Set to 1 if shared object needs to be installed | ||||
| # | ||||
| SHARED_MODE=0 | ||||
|  | ||||
| #LOC = -DASMV | ||||
| #LOC = -DDEBUG -g | ||||
|  | ||||
| PREFIX = | ||||
| CC = $(PREFIX)gcc | ||||
| CFLAGS = $(LOC) -O3 -Wall | ||||
| EXTRA_CFLAGS = -DNO_VIZ | ||||
|  | ||||
| AS = $(CC) | ||||
| ASFLAGS = $(LOC) -Wall | ||||
|  | ||||
| LD = $(CC) | ||||
| LDFLAGS = $(LOC) -s | ||||
| LDFLAGS = $(LOC) | ||||
|  | ||||
| AR = $(PREFIX)ar | ||||
| ARFLAGS = rcs | ||||
| @@ -71,7 +77,7 @@ testdll: example_d.exe minigzip_d.exe | ||||
| 	echo hello world | ./minigzip_d | ./minigzip_d -d | ||||
|  | ||||
| .c.o: | ||||
| 	$(CC) $(CFLAGS) -c -o $@ $< | ||||
| 	$(CC) $(CFLAGS) $(EXTRA_CFLAGS) -c -o $@ $< | ||||
|  | ||||
| .S.o: | ||||
| 	$(AS) $(ASFLAGS) -c -o $@ $< | ||||
| @@ -82,43 +88,54 @@ $(STATICLIB): $(OBJS) $(OBJA) | ||||
| $(IMPLIB): $(SHAREDLIB) | ||||
|  | ||||
| $(SHAREDLIB): win32/zlib.def $(OBJS) $(OBJA) zlibrc.o | ||||
| 	$(CC) -shared -Wl,--out-implib,$(IMPLIB) \ | ||||
| 	$(CC) -shared -Wl,--out-implib,$(IMPLIB) $(LDFLAGS) \ | ||||
| 	-o $@ win32/zlib.def $(OBJS) $(OBJA) zlibrc.o | ||||
| 	$(STRIP) $@ | ||||
|  | ||||
| example.exe: example.o $(STATICLIB) | ||||
| 	$(LD) $(LDFLAGS) -o $@ example.o $(STATICLIB) | ||||
| 	$(STRIP) $@ | ||||
|  | ||||
| minigzip.exe: minigzip.o $(STATICLIB) | ||||
| 	$(LD) $(LDFLAGS) -o $@ minigzip.o $(STATICLIB) | ||||
| 	$(STRIP) $@ | ||||
|  | ||||
| example_d.exe: example.o $(IMPLIB) | ||||
| 	$(LD) $(LDFLAGS) -o $@ example.o $(IMPLIB) | ||||
| 	$(STRIP) $@ | ||||
|  | ||||
| minigzip_d.exe: minigzip.o $(IMPLIB) | ||||
| 	$(LD) $(LDFLAGS) -o $@ minigzip.o $(IMPLIB) | ||||
| 	$(STRIP) $@ | ||||
|  | ||||
| zlibrc.o: win32/zlib1.rc | ||||
| 	$(RC) $(RCFLAGS) -o $@ win32/zlib1.rc | ||||
|  | ||||
|  | ||||
| # INCLUDE_PATH and LIBRARY_PATH must be set. | ||||
| # BINARY_PATH, INCLUDE_PATH and LIBRARY_PATH must be set. | ||||
|  | ||||
| .PHONY: install uninstall clean | ||||
|  | ||||
| install: zlib.h zconf.h $(LIB) | ||||
| install: zlib.h zconf.h $(STATICLIB) $(IMPLIB) | ||||
| 	-@mkdir -p $(INCLUDE_PATH) | ||||
| 	-@mkdir -p $(LIBRARY_PATH) | ||||
| 	-if [ "$(SHARED_MODE)" = "1" ]; then \ | ||||
| 		mkdir -p $(BINARY_PATH); \ | ||||
| 		$(INSTALL) $(SHAREDLIB) $(BINARY_PATH); \ | ||||
| 		$(INSTALL) $(IMPLIB) $(LIBRARY_PATH); \ | ||||
| 	fi | ||||
| 	-$(INSTALL) zlib.h $(INCLUDE_PATH) | ||||
| 	-$(INSTALL) zconf.h $(INCLUDE_PATH) | ||||
| 	-$(INSTALL) $(STATICLIB) $(LIBRARY_PATH) | ||||
| 	-$(INSTALL) $(IMPLIB) $(LIBRARY_PATH) | ||||
|  | ||||
| uninstall: | ||||
| 	-if [ "$(SHARED_MODE)" = "1" ]; then \ | ||||
| 		$(RM) $(BINARY_PATH)/$(SHAREDLIB); \ | ||||
| 		$(RM) $(LIBRARY_PATH)/$(IMPLIB); \ | ||||
| 	fi | ||||
| 	-$(RM) $(INCLUDE_PATH)/zlib.h | ||||
| 	-$(RM) $(INCLUDE_PATH)/zconf.h | ||||
| 	-$(RM) $(LIBRARY_PATH)/$(STATICLIB) | ||||
| 	-$(RM) $(LIBRARY_PATH)/$(IMPLIB) | ||||
|  | ||||
| clean: | ||||
| 	-$(RM) $(STATICLIB) | ||||
|   | ||||
							
								
								
									
										22
									
								
								zconf.h
									
									
									
									
									
								
							
							
						
						
									
										22
									
								
								zconf.h
									
									
									
									
									
								
							| @@ -315,10 +315,6 @@ | ||||
| #  endif | ||||
| #endif | ||||
|  | ||||
| #ifdef HAVE_VISIBILITY_PRAGMA | ||||
| #  define ZEXTERN __attribute__((visibility ("default"))) extern | ||||
| #endif | ||||
|  | ||||
| #ifndef ZEXTERN | ||||
| #  define ZEXTERN extern | ||||
| #endif | ||||
| @@ -368,7 +364,17 @@ typedef uLong FAR uLongf; | ||||
| #  include <sys/types.h>    /* for off_t */ | ||||
| #endif | ||||
|  | ||||
| #if defined(Z_HAVE_UNISTD_H) || _LARGEFILE64_SOURCE | ||||
| /* a little trick to accommodate both "#define _LARGEFILE64_SOURCE" and | ||||
|  * "#define _LARGEFILE64_SOURCE 1" as requesting 64-bit operations, (even | ||||
|  * though the former does not conform to the LFS document), but considering | ||||
|  * both "#undef _LARGEFILE64_SOURCE" and "#define _LARGEFILE64_SOURCE 0" as | ||||
|  * equivalently requesting no 64-bit operations | ||||
|  */ | ||||
| #if -_LARGEFILE64_SOURCE - -1 == 1 | ||||
| #  undef _LARGEFILE64_SOURCE | ||||
| #endif | ||||
|  | ||||
| #if defined(Z_HAVE_UNISTD_H) || defined(_LARGEFILE64_SOURCE) | ||||
| #  include <unistd.h>       /* for SEEK_* and off_t */ | ||||
| #  ifdef VMS | ||||
| #    include <unixio.h>     /* for off_t */ | ||||
| @@ -388,6 +394,12 @@ typedef uLong FAR uLongf; | ||||
| #  define z_off_t long | ||||
| #endif | ||||
|  | ||||
| #if defined(_LARGEFILE64_SOURCE) && _LFS64_LARGEFILE-0 | ||||
| #  define z_off64_t off64_t | ||||
| #else | ||||
| #  define z_off64_t z_off_t | ||||
| #endif | ||||
|  | ||||
| #if defined(__OS400__) | ||||
| #  define NO_vsnprintf | ||||
| #endif | ||||
|   | ||||
| @@ -317,10 +317,6 @@ | ||||
| #  endif | ||||
| #endif | ||||
|  | ||||
| #ifdef HAVE_VISIBILITY_PRAGMA | ||||
| #  define ZEXTERN __attribute__((visibility ("default"))) extern | ||||
| #endif | ||||
|  | ||||
| #ifndef ZEXTERN | ||||
| #  define ZEXTERN extern | ||||
| #endif | ||||
| @@ -370,7 +366,17 @@ typedef uLong FAR uLongf; | ||||
| #  include <sys/types.h>    /* for off_t */ | ||||
| #endif | ||||
|  | ||||
| #if defined(Z_HAVE_UNISTD_H) || _LARGEFILE64_SOURCE | ||||
| /* a little trick to accommodate both "#define _LARGEFILE64_SOURCE" and | ||||
|  * "#define _LARGEFILE64_SOURCE 1" as requesting 64-bit operations, (even | ||||
|  * though the former does not conform to the LFS document), but considering | ||||
|  * both "#undef _LARGEFILE64_SOURCE" and "#define _LARGEFILE64_SOURCE 0" as | ||||
|  * equivalently requesting no 64-bit operations | ||||
|  */ | ||||
| #if -_LARGEFILE64_SOURCE - -1 == 1 | ||||
| #  undef _LARGEFILE64_SOURCE | ||||
| #endif | ||||
|  | ||||
| #if defined(Z_HAVE_UNISTD_H) || defined(_LARGEFILE64_SOURCE) | ||||
| #  include <unistd.h>       /* for SEEK_* and off_t */ | ||||
| #  ifdef VMS | ||||
| #    include <unixio.h>     /* for off_t */ | ||||
| @@ -390,6 +396,12 @@ typedef uLong FAR uLongf; | ||||
| #  define z_off_t long | ||||
| #endif | ||||
|  | ||||
| #if defined(_LARGEFILE64_SOURCE) && _LFS64_LARGEFILE-0 | ||||
| #  define z_off64_t off64_t | ||||
| #else | ||||
| #  define z_off64_t z_off_t | ||||
| #endif | ||||
|  | ||||
| #if defined(__OS400__) | ||||
| #  define NO_vsnprintf | ||||
| #endif | ||||
|   | ||||
							
								
								
									
										22
									
								
								zconf.h.in
									
									
									
									
									
								
							
							
						
						
									
										22
									
								
								zconf.h.in
									
									
									
									
									
								
							| @@ -315,10 +315,6 @@ | ||||
| #  endif | ||||
| #endif | ||||
|  | ||||
| #ifdef HAVE_VISIBILITY_PRAGMA | ||||
| #  define ZEXTERN __attribute__((visibility ("default"))) extern | ||||
| #endif | ||||
|  | ||||
| #ifndef ZEXTERN | ||||
| #  define ZEXTERN extern | ||||
| #endif | ||||
| @@ -368,7 +364,17 @@ typedef uLong FAR uLongf; | ||||
| #  include <sys/types.h>    /* for off_t */ | ||||
| #endif | ||||
|  | ||||
| #if defined(Z_HAVE_UNISTD_H) || _LARGEFILE64_SOURCE | ||||
| /* a little trick to accommodate both "#define _LARGEFILE64_SOURCE" and | ||||
|  * "#define _LARGEFILE64_SOURCE 1" as requesting 64-bit operations, (even | ||||
|  * though the former does not conform to the LFS document), but considering | ||||
|  * both "#undef _LARGEFILE64_SOURCE" and "#define _LARGEFILE64_SOURCE 0" as | ||||
|  * equivalently requesting no 64-bit operations | ||||
|  */ | ||||
| #if -_LARGEFILE64_SOURCE - -1 == 1 | ||||
| #  undef _LARGEFILE64_SOURCE | ||||
| #endif | ||||
|  | ||||
| #if defined(Z_HAVE_UNISTD_H) || defined(_LARGEFILE64_SOURCE) | ||||
| #  include <unistd.h>       /* for SEEK_* and off_t */ | ||||
| #  ifdef VMS | ||||
| #    include <unixio.h>     /* for off_t */ | ||||
| @@ -388,6 +394,12 @@ typedef uLong FAR uLongf; | ||||
| #  define z_off_t long | ||||
| #endif | ||||
|  | ||||
| #if defined(_LARGEFILE64_SOURCE) && _LFS64_LARGEFILE-0 | ||||
| #  define z_off64_t off64_t | ||||
| #else | ||||
| #  define z_off64_t z_off_t | ||||
| #endif | ||||
|  | ||||
| #if defined(__OS400__) | ||||
| #  define NO_vsnprintf | ||||
| #endif | ||||
|   | ||||
							
								
								
									
										4
									
								
								zlib.3
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								zlib.3
									
									
									
									
									
								
							| @@ -1,4 +1,4 @@ | ||||
| .TH ZLIB 3 "9 Apr 2010" | ||||
| .TH ZLIB 3 "19 Apr 2010" | ||||
| .SH NAME | ||||
| zlib \- compression/decompression library | ||||
| .SH SYNOPSIS | ||||
| @@ -125,7 +125,7 @@ before asking for help. | ||||
| Send questions and/or comments to zlib@gzip.org, | ||||
| or (for the Windows DLL version) to Gilles Vollant (info@winimage.com). | ||||
| .SH AUTHORS | ||||
| Version 1.2.4.2 | ||||
| Version 1.2.5 | ||||
| Copyright (C) 1995-2010 Jean-loup Gailly (jloup@gzip.org) | ||||
| and Mark Adler (madler@alumni.caltech.edu). | ||||
| .LP | ||||
|   | ||||
							
								
								
									
										
											BIN
										
									
								
								zlib.3.pdf
									
									
									
									
									
								
							
							
						
						
									
										
											BIN
										
									
								
								zlib.3.pdf
									
									
									
									
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										46
									
								
								zlib.h
									
									
									
									
									
								
							
							
						
						
									
										46
									
								
								zlib.h
									
									
									
									
									
								
							| @@ -1,5 +1,5 @@ | ||||
| /* zlib.h -- interface of the 'zlib' general purpose compression library | ||||
|   version 1.2.4.2, April 9th, 2010 | ||||
|   version 1.2.5, April 19th, 2010 | ||||
|  | ||||
|   Copyright (C) 1995-2010 Jean-loup Gailly and Mark Adler | ||||
|  | ||||
| @@ -37,12 +37,12 @@ | ||||
| extern "C" { | ||||
| #endif | ||||
|  | ||||
| #define ZLIB_VERSION "1.2.4.2" | ||||
| #define ZLIB_VERNUM 0x1241 | ||||
| #define ZLIB_VERSION "1.2.5" | ||||
| #define ZLIB_VERNUM 0x1250 | ||||
| #define ZLIB_VER_MAJOR 1 | ||||
| #define ZLIB_VER_MINOR 2 | ||||
| #define ZLIB_VER_REVISION 4 | ||||
| #define ZLIB_VER_SUBREVISION 2 | ||||
| #define ZLIB_VER_REVISION 5 | ||||
| #define ZLIB_VER_SUBREVISION 0 | ||||
|  | ||||
| /* | ||||
|     The 'zlib' compression library provides in-memory compression and | ||||
| @@ -1556,29 +1556,35 @@ ZEXTERN int ZEXPORT inflateBackInit_ OF((z_streamp strm, int windowBits, | ||||
|         inflateBackInit_((strm), (windowBits), (window), \ | ||||
|                                             ZLIB_VERSION, sizeof(z_stream)) | ||||
|  | ||||
| #if _LARGEFILE64_SOURCE && _LFS64_LARGEFILE | ||||
| /* provide 64-bit offset functions if _LARGEFILE64_SOURCE defined, and/or | ||||
|  * change the regular functions to 64 bits if _FILE_OFFSET_BITS is 64 (if | ||||
|  * both are true, the application gets the *64 functions, and the regular | ||||
|  * functions are changed to 64 bits) -- in case these are set on systems | ||||
|  * without large file support, _LFS64_LARGEFILE must also be true | ||||
|  */ | ||||
| #if defined(_LARGEFILE64_SOURCE) && _LFS64_LARGEFILE-0 | ||||
|    ZEXTERN gzFile ZEXPORT gzopen64 OF((const char *, const char *)); | ||||
|    ZEXTERN off64_t ZEXPORT gzseek64 OF((gzFile, off64_t, int)); | ||||
|    ZEXTERN off64_t ZEXPORT gztell64 OF((gzFile)); | ||||
|    ZEXTERN off64_t ZEXPORT gzoffset64 OF((gzFile)); | ||||
|    ZEXTERN uLong ZEXPORT adler32_combine64 OF((uLong, uLong, off64_t)); | ||||
|    ZEXTERN uLong ZEXPORT crc32_combine64 OF((uLong, uLong, off64_t)); | ||||
|    ZEXTERN z_off64_t ZEXPORT gzseek64 OF((gzFile, z_off64_t, int)); | ||||
|    ZEXTERN z_off64_t ZEXPORT gztell64 OF((gzFile)); | ||||
|    ZEXTERN z_off64_t ZEXPORT gzoffset64 OF((gzFile)); | ||||
|    ZEXTERN uLong ZEXPORT adler32_combine64 OF((uLong, uLong, z_off64_t)); | ||||
|    ZEXTERN uLong ZEXPORT crc32_combine64 OF((uLong, uLong, z_off64_t)); | ||||
| #endif | ||||
|  | ||||
| #if !defined(ZLIB_INTERNAL) && _FILE_OFFSET_BITS+0 == 64 && _LFS64_LARGEFILE | ||||
| #if !defined(ZLIB_INTERNAL) && _FILE_OFFSET_BITS-0 == 64 && _LFS64_LARGEFILE-0 | ||||
| #  define gzopen gzopen64 | ||||
| #  define gzseek gzseek64 | ||||
| #  define gztell gztell64 | ||||
| #  define gzoffset gzoffset64 | ||||
| #  define adler32_combine adler32_combine64 | ||||
| #  define crc32_combine crc32_combine64 | ||||
| #  if _LARGEFILE64_SOURCE | ||||
| #  ifdef _LARGEFILE64_SOURCE | ||||
|      ZEXTERN gzFile ZEXPORT gzopen64 OF((const char *, const char *)); | ||||
|      ZEXTERN off_t ZEXPORT gzseek64 OF((gzFile, off_t, int)); | ||||
|      ZEXTERN off_t ZEXPORT gztell64 OF((gzFile)); | ||||
|      ZEXTERN off_t ZEXPORT gzoffset64 OF((gzFile)); | ||||
|      ZEXTERN uLong ZEXPORT adler32_combine64 OF((uLong, uLong, off_t)); | ||||
|      ZEXTERN uLong ZEXPORT crc32_combine64 OF((uLong, uLong, off_t)); | ||||
|      ZEXTERN z_off_t ZEXPORT gzseek64 OF((gzFile, z_off_t, int)); | ||||
|      ZEXTERN z_off_t ZEXPORT gztell64 OF((gzFile)); | ||||
|      ZEXTERN z_off_t ZEXPORT gzoffset64 OF((gzFile)); | ||||
|      ZEXTERN uLong ZEXPORT adler32_combine64 OF((uLong, uLong, z_off_t)); | ||||
|      ZEXTERN uLong ZEXPORT crc32_combine64 OF((uLong, uLong, z_off_t)); | ||||
| #  endif | ||||
| #else | ||||
|    ZEXTERN gzFile ZEXPORT gzopen OF((const char *, const char *)); | ||||
| @@ -1589,10 +1595,12 @@ ZEXTERN int ZEXPORT inflateBackInit_ OF((z_streamp strm, int windowBits, | ||||
|    ZEXTERN uLong ZEXPORT crc32_combine OF((uLong, uLong, z_off_t)); | ||||
| #endif | ||||
|  | ||||
| /* hack for buggy compilers */ | ||||
| #if !defined(ZUTIL_H) && !defined(NO_DUMMY_DECL) | ||||
|     struct internal_state {int dummy;}; /* hack for buggy compilers */ | ||||
|     struct internal_state {int dummy;}; | ||||
| #endif | ||||
|  | ||||
| /* undocumented functions */ | ||||
| ZEXTERN const char   * ZEXPORT zError           OF((int)); | ||||
| ZEXTERN int            ZEXPORT inflateSyncPoint OF((z_streamp)); | ||||
| ZEXTERN const uLongf * ZEXPORT get_crc_table    OF((void)); | ||||
|   | ||||
| @@ -1,6 +1,7 @@ | ||||
| prefix=@prefix@ | ||||
| exec_prefix=@exec_prefix@ | ||||
| libdir=@libdir@ | ||||
| sharedlibdir=@sharedlibdir@ | ||||
| includedir=@includedir@ | ||||
|  | ||||
| Name: zlib | ||||
| @@ -8,5 +9,5 @@ Description: zlib compression library | ||||
| Version: @VERSION@ | ||||
|  | ||||
| Requires: | ||||
| Libs: -L${libdir} -lz | ||||
| Libs: -L${libdir} -L${sharedlibdir} -lz | ||||
| Cflags: -I${includedir} | ||||
|   | ||||
							
								
								
									
										24
									
								
								zutil.c
									
									
									
									
									
								
							
							
						
						
									
										24
									
								
								zutil.c
									
									
									
									
									
								
							| @@ -1,5 +1,5 @@ | ||||
| /* zutil.c -- target dependent utility functions for the compression library | ||||
|  * Copyright (C) 1995-2005 Jean-loup Gailly. | ||||
|  * Copyright (C) 1995-2005, 2010 Jean-loup Gailly. | ||||
|  * For conditions of distribution and use, see copyright notice in zlib.h | ||||
|  */ | ||||
|  | ||||
| @@ -117,9 +117,9 @@ uLong ZEXPORT zlibCompileFlags() | ||||
| #  ifndef verbose | ||||
| #    define verbose 0 | ||||
| #  endif | ||||
| int z_verbose = verbose; | ||||
| int ZLIB_INTERNAL z_verbose = verbose; | ||||
|  | ||||
| void z_error (m) | ||||
| void ZLIB_INTERNAL z_error (m) | ||||
|     char *m; | ||||
| { | ||||
|     fprintf(stderr, "%s\n", m); | ||||
| @@ -146,7 +146,7 @@ const char * ZEXPORT zError(err) | ||||
|  | ||||
| #ifndef HAVE_MEMCPY | ||||
|  | ||||
| void zmemcpy(dest, source, len) | ||||
| void ZLIB_INTERNAL zmemcpy(dest, source, len) | ||||
|     Bytef* dest; | ||||
|     const Bytef* source; | ||||
|     uInt  len; | ||||
| @@ -157,7 +157,7 @@ void zmemcpy(dest, source, len) | ||||
|     } while (--len != 0); | ||||
| } | ||||
|  | ||||
| int zmemcmp(s1, s2, len) | ||||
| int ZLIB_INTERNAL zmemcmp(s1, s2, len) | ||||
|     const Bytef* s1; | ||||
|     const Bytef* s2; | ||||
|     uInt  len; | ||||
| @@ -170,7 +170,7 @@ int zmemcmp(s1, s2, len) | ||||
|     return 0; | ||||
| } | ||||
|  | ||||
| void zmemzero(dest, len) | ||||
| void ZLIB_INTERNAL zmemzero(dest, len) | ||||
|     Bytef* dest; | ||||
|     uInt  len; | ||||
| { | ||||
| @@ -213,7 +213,7 @@ local ptr_table table[MAX_PTR]; | ||||
|  * a protected system like OS/2. Use Microsoft C instead. | ||||
|  */ | ||||
|  | ||||
| voidpf zcalloc (voidpf opaque, unsigned items, unsigned size) | ||||
| voidpf ZLIB_INTERNAL zcalloc (voidpf opaque, unsigned items, unsigned size) | ||||
| { | ||||
|     voidpf buf = opaque; /* just to make some compilers happy */ | ||||
|     ulg bsize = (ulg)items*size; | ||||
| @@ -237,7 +237,7 @@ voidpf zcalloc (voidpf opaque, unsigned items, unsigned size) | ||||
|     return buf; | ||||
| } | ||||
|  | ||||
| void  zcfree (voidpf opaque, voidpf ptr) | ||||
| void ZLIB_INTERNAL zcfree (voidpf opaque, voidpf ptr) | ||||
| { | ||||
|     int n; | ||||
|     if (*(ush*)&ptr != 0) { /* object < 64K */ | ||||
| @@ -272,13 +272,13 @@ void  zcfree (voidpf opaque, voidpf ptr) | ||||
| #  define _hfree   hfree | ||||
| #endif | ||||
|  | ||||
| voidpf zcalloc (voidpf opaque, uInt items, uInt size) | ||||
| voidpf ZLIB_INTERNAL zcalloc (voidpf opaque, uInt items, uInt size) | ||||
| { | ||||
|     if (opaque) opaque = 0; /* to make compiler happy */ | ||||
|     return _halloc((long)items, size); | ||||
| } | ||||
|  | ||||
| void  zcfree (voidpf opaque, voidpf ptr) | ||||
| void ZLIB_INTERNAL zcfree (voidpf opaque, voidpf ptr) | ||||
| { | ||||
|     if (opaque) opaque = 0; /* to make compiler happy */ | ||||
|     _hfree(ptr); | ||||
| @@ -297,7 +297,7 @@ extern voidp  calloc OF((uInt items, uInt size)); | ||||
| extern void   free   OF((voidpf ptr)); | ||||
| #endif | ||||
|  | ||||
| voidpf zcalloc (opaque, items, size) | ||||
| voidpf ZLIB_INTERNAL zcalloc (opaque, items, size) | ||||
|     voidpf opaque; | ||||
|     unsigned items; | ||||
|     unsigned size; | ||||
| @@ -307,7 +307,7 @@ voidpf zcalloc (opaque, items, size) | ||||
|                               (voidpf)calloc(items, size); | ||||
| } | ||||
|  | ||||
| void  zcfree (opaque, ptr) | ||||
| void ZLIB_INTERNAL zcfree (opaque, ptr) | ||||
|     voidpf opaque; | ||||
|     voidpf ptr; | ||||
| { | ||||
|   | ||||
							
								
								
									
										30
									
								
								zutil.h
									
									
									
									
									
								
							
							
						
						
									
										30
									
								
								zutil.h
									
									
									
									
									
								
							| @@ -13,7 +13,12 @@ | ||||
| #ifndef ZUTIL_H | ||||
| #define ZUTIL_H | ||||
|  | ||||
| #define ZLIB_INTERNAL | ||||
| #if ((__GNUC__-0) * 10 + __GNUC_MINOR__-0 >= 33) && !defined(NO_VIZ) | ||||
| #  define ZLIB_INTERNAL __attribute__((visibility ("hidden"))) | ||||
| #else | ||||
| #  define ZLIB_INTERNAL | ||||
| #endif | ||||
|  | ||||
| #include "zlib.h" | ||||
|  | ||||
| #ifdef STDC | ||||
| @@ -154,14 +159,8 @@ extern const char * const z_errmsg[10]; /* indexed by 2-zlib_error */ | ||||
|   #pragma warn -8066 | ||||
| #endif | ||||
|  | ||||
| #if _LARGEFILE64_SOURCE && _LFS64_LARGEFILE | ||||
| #  define z_off64_t off64_t | ||||
| #else | ||||
| #  define z_off64_t z_off_t | ||||
| #endif | ||||
|  | ||||
| /* provide prototypes for these when building zlib without LFS */ | ||||
| #if _LARGEFILE64_SOURCE+0 != 1 || _LFS64_LARGEFILE+0 != 1 | ||||
| #if !defined(_LARGEFILE64_SOURCE) || _LFS64_LARGEFILE-0 == 0 | ||||
|     ZEXTERN uLong ZEXPORT adler32_combine64 OF((uLong, uLong, z_off_t)); | ||||
|     ZEXTERN uLong ZEXPORT crc32_combine64 OF((uLong, uLong, z_off_t)); | ||||
| #endif | ||||
| @@ -237,16 +236,16 @@ extern const char * const z_errmsg[10]; /* indexed by 2-zlib_error */ | ||||
| #    define zmemzero(dest, len) memset(dest, 0, len) | ||||
| #  endif | ||||
| #else | ||||
|    extern void zmemcpy  OF((Bytef* dest, const Bytef* source, uInt len)); | ||||
|    extern int  zmemcmp  OF((const Bytef* s1, const Bytef* s2, uInt len)); | ||||
|    extern void zmemzero OF((Bytef* dest, uInt len)); | ||||
|    void ZLIB_INTERNAL zmemcpy OF((Bytef* dest, const Bytef* source, uInt len)); | ||||
|    int ZLIB_INTERNAL zmemcmp OF((const Bytef* s1, const Bytef* s2, uInt len)); | ||||
|    void ZLIB_INTERNAL zmemzero OF((Bytef* dest, uInt len)); | ||||
| #endif | ||||
|  | ||||
| /* Diagnostic functions */ | ||||
| #ifdef DEBUG | ||||
| #  include <stdio.h> | ||||
|    extern int z_verbose; | ||||
|    extern void z_error    OF((char *m)); | ||||
|    extern int ZLIB_INTERNAL z_verbose; | ||||
|    extern void ZLIB_INTERNAL z_error OF((char *m)); | ||||
| #  define Assert(cond,msg) {if(!(cond)) z_error(msg);} | ||||
| #  define Trace(x) {if (z_verbose>=0) fprintf x ;} | ||||
| #  define Tracev(x) {if (z_verbose>0) fprintf x ;} | ||||
| @@ -263,8 +262,9 @@ extern const char * const z_errmsg[10]; /* indexed by 2-zlib_error */ | ||||
| #endif | ||||
|  | ||||
|  | ||||
| voidpf zcalloc OF((voidpf opaque, unsigned items, unsigned size)); | ||||
| void   zcfree  OF((voidpf opaque, voidpf ptr)); | ||||
| voidpf ZLIB_INTERNAL zcalloc OF((voidpf opaque, unsigned items, | ||||
|                         unsigned size)); | ||||
| void ZLIB_INTERNAL zcfree  OF((voidpf opaque, voidpf ptr)); | ||||
|  | ||||
| #define ZALLOC(strm, items, size) \ | ||||
|            (*((strm)->zalloc))((strm)->opaque, (items), (size)) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user