diff options
Diffstat (limited to 'old')
| -rwxr-xr-x[-rw-r--r--] | old/Make_vms.com | 4 | ||||
| -rw-r--r-- | old/descrip.mms | 6 | ||||
| -rw-r--r-- | old/msdos/Makefile.b32 | 6 | ||||
| -rw-r--r-- | old/msdos/Makefile.dj2 | 100 | ||||
| -rw-r--r-- | old/msdos/Makefile.emx | 69 | ||||
| -rw-r--r-- | old/msdos/Makefile.msc | 121 | ||||
| -rw-r--r-- | old/msdos/Makefile.w32 | 97 | ||||
| -rw-r--r-- | old/msdos/Makefile.wat | 16 | ||||
| -rw-r--r-- | old/msdos/zlib.def | 60 | ||||
| -rw-r--r-- | old/msdos/zlib.rc | 32 | ||||
| -rw-r--r-- | old/nt/Makefile.emx | 138 | ||||
| -rw-r--r-- | old/nt/Makefile.gcc | 87 | ||||
| -rw-r--r-- | old/nt/Makefile.nt | 88 | ||||
| -rw-r--r-- | old/nt/zlib.dnt | 47 | ||||
| -rw-r--r-- | old/os2/Makefile.os2 | 8 | ||||
| -rw-r--r-- | old/zlib.html | 34 |
16 files changed, 37 insertions, 876 deletions
diff --git a/old/Make_vms.com b/old/Make_vms.com index 1c57e8f..4fe3013 100644..100755 --- a/old/Make_vms.com +++ b/old/Make_vms.com | |||
| @@ -64,8 +64,8 @@ $ call make example.exe "LINK example,libz.olb/lib" example.obj libz.olb | |||
| 64 | $ write sys$output "Building minigzip..." | 64 | $ write sys$output "Building minigzip..." |
| 65 | $ CALL MAKE minigzip.OBJ "CC ''CCOPT' minigzip" - | 65 | $ CALL MAKE minigzip.OBJ "CC ''CCOPT' minigzip" - |
| 66 | minigzip.c zlib.h zconf.h | 66 | minigzip.c zlib.h zconf.h |
| 67 | $ call make minigzip.exe - | 67 | $ call make minigzip.exe - |
| 68 | "LINK minigzip,libz.olb/lib,x11vms:xvmsutils.olb/lib" - | 68 | "LINK minigzip,libz.olb/lib,x11vms:xvmsutils.olb/lib" - |
| 69 | minigzip.obj libz.olb | 69 | minigzip.obj libz.olb |
| 70 | $ else | 70 | $ else |
| 71 | $ mms/macro=('comp') | 71 | $ mms/macro=('comp') |
diff --git a/old/descrip.mms b/old/descrip.mms index 9d36459..7066da5 100644 --- a/old/descrip.mms +++ b/old/descrip.mms | |||
| @@ -1,8 +1,8 @@ | |||
| 1 | # descrip.mms: MMS description file for building zlib on VMS | 1 | # descrip.mms: MMS description file for building zlib on VMS |
| 2 | # written by Martin P.J. Zinser <m.zinser@gsi.de> | 2 | # written by Martin P.J. Zinser <m.zinser@gsi.de> |
| 3 | 3 | ||
| 4 | cc_defs = | 4 | cc_defs = |
| 5 | c_deb = | 5 | c_deb = |
| 6 | 6 | ||
| 7 | .ifdef __DECC__ | 7 | .ifdef __DECC__ |
| 8 | pref = /prefix=all | 8 | pref = /prefix=all |
| @@ -25,7 +25,7 @@ example.exe : example.obj libz.olb | |||
| 25 | minigzip.exe : minigzip.obj libz.olb | 25 | minigzip.exe : minigzip.obj libz.olb |
| 26 | link minigzip,libz.olb/lib,x11vms:xvmsutils.olb/lib | 26 | link minigzip,libz.olb/lib,x11vms:xvmsutils.olb/lib |
| 27 | 27 | ||
| 28 | clean : | 28 | clean : |
| 29 | delete *.obj;*,libz.olb;* | 29 | delete *.obj;*,libz.olb;* |
| 30 | 30 | ||
| 31 | 31 | ||
diff --git a/old/msdos/Makefile.b32 b/old/msdos/Makefile.b32 index f476da9..3802ea4 100644 --- a/old/msdos/Makefile.b32 +++ b/old/msdos/Makefile.b32 | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | # Makefile for zlib | 1 | # Makefile for zlib |
| 2 | # Borland C++ | 2 | # Borland C++ |
| 3 | 3 | ||
| 4 | # This version of the zlib makefile was adapted by Chris Young for use | 4 | # This version of the zlib makefile was adapted by Chris Young for use |
| 5 | # with Borland C 4.5x with the Dos Power Pack for a 32-bit protected mode | 5 | # with Borland C 4.5x with the Dos Power Pack for a 32-bit protected mode |
| @@ -13,7 +13,7 @@ | |||
| 13 | # See zconf.h for details about the memory requirements. | 13 | # See zconf.h for details about the memory requirements. |
| 14 | 14 | ||
| 15 | # ------------- Borland C++ ------------- | 15 | # ------------- Borland C++ ------------- |
| 16 | MODEL=-WX | 16 | MODEL=-WX |
| 17 | CFLAGS= $(MODEL) -P-C -K -N- -k- -d -3 -r- -v- -f -DMSDOS | 17 | CFLAGS= $(MODEL) -P-C -K -N- -k- -d -3 -r- -v- -f -DMSDOS |
| 18 | CC=bcc32 | 18 | CC=bcc32 |
| 19 | LD=bcc32 | 19 | LD=bcc32 |
| @@ -97,7 +97,7 @@ minigzip.exe: minigzip.obj zlib.lib | |||
| 97 | 97 | ||
| 98 | test: example.exe minigzip.exe | 98 | test: example.exe minigzip.exe |
| 99 | example | 99 | example |
| 100 | echo hello world | minigzip | minigzip -d | 100 | echo hello world | minigzip | minigzip -d |
| 101 | 101 | ||
| 102 | #clean: | 102 | #clean: |
| 103 | # del *.obj | 103 | # del *.obj |
diff --git a/old/msdos/Makefile.dj2 b/old/msdos/Makefile.dj2 deleted file mode 100644 index 0ab431c..0000000 --- a/old/msdos/Makefile.dj2 +++ /dev/null | |||
| @@ -1,100 +0,0 @@ | |||
| 1 | # Makefile for zlib. Modified for djgpp v2.0 by F. J. Donahoe, 3/15/96. | ||
| 2 | # Copyright (C) 1995-1998 Jean-loup Gailly. | ||
| 3 | # For conditions of distribution and use, see copyright notice in zlib.h | ||
| 4 | |||
| 5 | # To compile, or to compile and test, type: | ||
| 6 | # | ||
| 7 | # make -fmakefile.dj2; make test -fmakefile.dj2 | ||
| 8 | # | ||
| 9 | # To install libz.a, zconf.h and zlib.h in the djgpp directories, type: | ||
| 10 | # | ||
| 11 | # make install -fmakefile.dj2 | ||
| 12 | # | ||
| 13 | # after first defining LIBRARY_PATH and INCLUDE_PATH in djgpp.env as | ||
| 14 | # in the sample below if the pattern of the DJGPP distribution is to | ||
| 15 | # be followed. Remember that, while <sp>'es around <=> are ignored in | ||
| 16 | # makefiles, they are *not* in batch files or in djgpp.env. | ||
| 17 | # - - - - - | ||
| 18 | # [make] | ||
| 19 | # INCLUDE_PATH=%\>;INCLUDE_PATH%%\DJDIR%\include | ||
| 20 | # LIBRARY_PATH=%\>;LIBRARY_PATH%%\DJDIR%\lib | ||
| 21 | # BUTT=-m486 | ||
| 22 | # - - - - - | ||
| 23 | # Alternately, these variables may be defined below, overriding the values | ||
| 24 | # in djgpp.env, as | ||
| 25 | # INCLUDE_PATH=c:\usr\include | ||
| 26 | # LIBRARY_PATH=c:\usr\lib | ||
| 27 | |||
| 28 | CC=gcc | ||
| 29 | |||
| 30 | #CFLAGS=-MMD -O | ||
| 31 | #CFLAGS=-O -DMAX_WBITS=14 -DMAX_MEM_LEVEL=7 | ||
| 32 | #CFLAGS=-MMD -g -DDEBUG | ||
| 33 | CFLAGS=-MMD -O3 $(BUTT) -Wall -Wwrite-strings -Wpointer-arith -Wconversion \ | ||
| 34 | -Wstrict-prototypes -Wmissing-prototypes | ||
| 35 | |||
| 36 | # If cp.exe is available, replace "copy /Y" with "cp -fp" . | ||
| 37 | CP=copy /Y | ||
| 38 | # If gnu install.exe is available, replace $(CP) with ginstall. | ||
| 39 | INSTALL=$(CP) | ||
| 40 | # The default value of RM is "rm -f." If "rm.exe" is found, comment out: | ||
| 41 | RM=del | ||
| 42 | LDLIBS=-L. -lz | ||
| 43 | LD=$(CC) -s -o | ||
| 44 | LDSHARED=$(CC) | ||
| 45 | |||
| 46 | INCL=zlib.h zconf.h | ||
| 47 | LIBS=libz.a | ||
| 48 | |||
| 49 | AR=ar rcs | ||
| 50 | |||
| 51 | prefix=/usr/local | ||
| 52 | exec_prefix = $(prefix) | ||
| 53 | |||
| 54 | OBJS = adler32.o compress.o crc32.o gzio.o uncompr.o deflate.o trees.o \ | ||
| 55 | zutil.o inflate.o infblock.o inftrees.o infcodes.o infutil.o inffast.o | ||
| 56 | |||
| 57 | TEST_OBJS = example.o minigzip.o | ||
| 58 | |||
| 59 | all: example.exe minigzip.exe | ||
| 60 | |||
| 61 | test: all | ||
| 62 | ./example | ||
| 63 | echo hello world | .\minigzip | .\minigzip -d | ||
| 64 | |||
| 65 | %.o : %.c | ||
| 66 | $(CC) $(CFLAGS) -c $< -o $@ | ||
| 67 | |||
| 68 | libz.a: $(OBJS) | ||
| 69 | $(AR) $@ $(OBJS) | ||
| 70 | |||
| 71 | %.exe : %.o $(LIBS) | ||
| 72 | $(LD) $@ $< $(LDLIBS) | ||
| 73 | |||
| 74 | # INCLUDE_PATH and LIBRARY_PATH were set for [make] in djgpp.env . | ||
| 75 | |||
| 76 | .PHONY : uninstall clean | ||
| 77 | |||
| 78 | install: $(INCL) $(LIBS) | ||
| 79 | -@if not exist $(INCLUDE_PATH)\nul mkdir $(INCLUDE_PATH) | ||
| 80 | -@if not exist $(LIBRARY_PATH)\nul mkdir $(LIBRARY_PATH) | ||
| 81 | $(INSTALL) zlib.h $(INCLUDE_PATH) | ||
| 82 | $(INSTALL) zconf.h $(INCLUDE_PATH) | ||
| 83 | $(INSTALL) libz.a $(LIBRARY_PATH) | ||
| 84 | |||
| 85 | uninstall: | ||
| 86 | $(RM) $(INCLUDE_PATH)\zlib.h | ||
| 87 | $(RM) $(INCLUDE_PATH)\zconf.h | ||
| 88 | $(RM) $(LIBRARY_PATH)\libz.a | ||
| 89 | |||
| 90 | clean: | ||
| 91 | $(RM) *.d | ||
| 92 | $(RM) *.o | ||
| 93 | $(RM) *.exe | ||
| 94 | $(RM) libz.a | ||
| 95 | $(RM) foo.gz | ||
| 96 | |||
| 97 | DEPS := $(wildcard *.d) | ||
| 98 | ifneq ($(DEPS),) | ||
| 99 | include $(DEPS) | ||
| 100 | endif | ||
diff --git a/old/msdos/Makefile.emx b/old/msdos/Makefile.emx deleted file mode 100644 index 0e5e5cc..0000000 --- a/old/msdos/Makefile.emx +++ /dev/null | |||
| @@ -1,69 +0,0 @@ | |||
| 1 | # Makefile for zlib. Modified for emx 0.9c by Chr. Spieler, 6/17/98. | ||
| 2 | # Copyright (C) 1995-1998 Jean-loup Gailly. | ||
| 3 | # For conditions of distribution and use, see copyright notice in zlib.h | ||
| 4 | |||
| 5 | # To compile, or to compile and test, type: | ||
| 6 | # | ||
| 7 | # make -fmakefile.emx; make test -fmakefile.emx | ||
| 8 | # | ||
| 9 | |||
| 10 | CC=gcc | ||
| 11 | |||
| 12 | #CFLAGS=-MMD -O | ||
| 13 | #CFLAGS=-O -DMAX_WBITS=14 -DMAX_MEM_LEVEL=7 | ||
| 14 | #CFLAGS=-MMD -g -DDEBUG | ||
| 15 | CFLAGS=-MMD -O3 $(BUTT) -Wall -Wwrite-strings -Wpointer-arith -Wconversion \ | ||
| 16 | -Wstrict-prototypes -Wmissing-prototypes | ||
| 17 | |||
| 18 | # If cp.exe is available, replace "copy /Y" with "cp -fp" . | ||
| 19 | CP=copy /Y | ||
| 20 | # If gnu install.exe is available, replace $(CP) with ginstall. | ||
| 21 | INSTALL=$(CP) | ||
| 22 | # The default value of RM is "rm -f." If "rm.exe" is found, comment out: | ||
| 23 | RM=del | ||
| 24 | LDLIBS=-L. -lzlib | ||
| 25 | LD=$(CC) -s -o | ||
| 26 | LDSHARED=$(CC) | ||
| 27 | |||
| 28 | INCL=zlib.h zconf.h | ||
| 29 | LIBS=zlib.a | ||
| 30 | |||
| 31 | AR=ar rcs | ||
| 32 | |||
| 33 | prefix=/usr/local | ||
| 34 | exec_prefix = $(prefix) | ||
| 35 | |||
| 36 | OBJS = adler32.o compress.o crc32.o gzio.o uncompr.o deflate.o trees.o \ | ||
| 37 | zutil.o inflate.o infblock.o inftrees.o infcodes.o infutil.o inffast.o | ||
| 38 | |||
| 39 | TEST_OBJS = example.o minigzip.o | ||
| 40 | |||
| 41 | all: example.exe minigzip.exe | ||
| 42 | |||
| 43 | test: all | ||
| 44 | ./example | ||
| 45 | echo hello world | .\minigzip | .\minigzip -d | ||
| 46 | |||
| 47 | %.o : %.c | ||
| 48 | $(CC) $(CFLAGS) -c $< -o $@ | ||
| 49 | |||
| 50 | zlib.a: $(OBJS) | ||
| 51 | $(AR) $@ $(OBJS) | ||
| 52 | |||
| 53 | %.exe : %.o $(LIBS) | ||
| 54 | $(LD) $@ $< $(LDLIBS) | ||
| 55 | |||
| 56 | |||
| 57 | .PHONY : clean | ||
| 58 | |||
| 59 | clean: | ||
| 60 | $(RM) *.d | ||
| 61 | $(RM) *.o | ||
| 62 | $(RM) *.exe | ||
| 63 | $(RM) zlib.a | ||
| 64 | $(RM) foo.gz | ||
| 65 | |||
| 66 | DEPS := $(wildcard *.d) | ||
| 67 | ifneq ($(DEPS),) | ||
| 68 | include $(DEPS) | ||
| 69 | endif | ||
diff --git a/old/msdos/Makefile.msc b/old/msdos/Makefile.msc deleted file mode 100644 index 562201d..0000000 --- a/old/msdos/Makefile.msc +++ /dev/null | |||
| @@ -1,121 +0,0 @@ | |||
| 1 | # Makefile for zlib | ||
| 2 | # Microsoft C 5.1 or later | ||
| 3 | |||
| 4 | # To use, do "make makefile.msc" | ||
| 5 | # To compile in small model, set below: MODEL=S | ||
| 6 | |||
| 7 | # If you wish to reduce the memory requirements (default 256K for big | ||
| 8 | # objects plus a few K), you can add to the LOC macro below: | ||
| 9 | # -DMAX_MEM_LEVEL=7 -DMAX_WBITS=14 | ||
| 10 | # See zconf.h for details about the memory requirements. | ||
| 11 | |||
| 12 | # ------------- Microsoft C 5.1 and later ------------- | ||
| 13 | |||
| 14 | # Optional nonstandard preprocessor flags (e.g. -DMAX_MEM_LEVEL=7) | ||
| 15 | # should be added to the environment via "set LOCAL_ZLIB=-DFOO" or added | ||
| 16 | # to the declaration of LOC here: | ||
| 17 | LOC = $(LOCAL_ZLIB) | ||
| 18 | |||
| 19 | # Type for CPU required: 0: 8086, 1: 80186, 2: 80286, 3: 80386, etc. | ||
| 20 | CPU_TYP = 0 | ||
| 21 | |||
| 22 | # Memory model: one of S, M, C, L (small, medium, compact, large) | ||
| 23 | MODEL=L | ||
| 24 | |||
| 25 | CC=cl | ||
| 26 | CFLAGS=-nologo -A$(MODEL) -G$(CPU_TYP) -W3 -Oait -Gs $(LOC) | ||
| 27 | #-Ox generates bad code with MSC 5.1 | ||
| 28 | LIB_CFLAGS=-Zl $(CFLAGS) | ||
| 29 | |||
| 30 | LD=link | ||
| 31 | LDFLAGS=/noi/e/st:0x1500/noe/farcall/packcode | ||
| 32 | # "/farcall/packcode" are only useful for `large code' memory models | ||
| 33 | # but should be a "no-op" for small code models. | ||
| 34 | |||
| 35 | O=.obj | ||
| 36 | |||
| 37 | # variables | ||
| 38 | OBJ1 = adler32$(O) compress$(O) crc32$(O) gzio$(O) uncompr$(O) deflate$(O) \ | ||
| 39 | trees$(O) | ||
| 40 | OBJP1 = adler32$(O)+compress$(O)+crc32$(O)+gzio$(O)+uncompr$(O)+deflate$(O)+\ | ||
| 41 | trees$(O) | ||
| 42 | OBJ2 = zutil$(O) inflate$(O) infblock$(O) inftrees$(O) infcodes$(O) \ | ||
| 43 | infutil$(O) inffast$(O) | ||
| 44 | OBJP2 = zutil$(O)+inflate$(O)+infblock$(O)+inftrees$(O)+infcodes$(O)+\ | ||
| 45 | infutil$(O)+inffast$(O) | ||
| 46 | |||
| 47 | ZLIB_H = zlib.h zconf.h | ||
| 48 | ZUTIL_H = zutil.h $(ZLIB_H) | ||
| 49 | |||
| 50 | ZLIB_LIB = zlib_$(MODEL).lib | ||
| 51 | |||
| 52 | all: $(ZLIB_LIB) example.exe minigzip.exe | ||
| 53 | |||
| 54 | # individual dependencies and action rules: | ||
| 55 | adler32.obj: adler32.c $(ZLIB_H) | ||
| 56 | $(CC) -c $(LIB_CFLAGS) $*.c | ||
| 57 | |||
| 58 | compress.obj: compress.c $(ZLIB_H) | ||
| 59 | $(CC) -c $(LIB_CFLAGS) $*.c | ||
| 60 | |||
| 61 | crc32.obj: crc32.c $(ZLIB_H) | ||
| 62 | $(CC) -c $(LIB_CFLAGS) $*.c | ||
| 63 | |||
| 64 | deflate.obj: deflate.c deflate.h $(ZUTIL_H) | ||
| 65 | $(CC) -c $(LIB_CFLAGS) $*.c | ||
| 66 | |||
| 67 | gzio.obj: gzio.c $(ZUTIL_H) | ||
| 68 | $(CC) -c $(LIB_CFLAGS) $*.c | ||
| 69 | |||
| 70 | infblock.obj: infblock.c $(ZUTIL_H) infblock.h inftrees.h infcodes.h infutil.h | ||
| 71 | $(CC) -c $(LIB_CFLAGS) $*.c | ||
| 72 | |||
| 73 | infcodes.obj: infcodes.c $(ZUTIL_H) inftrees.h infutil.h infcodes.h inffast.h | ||
| 74 | $(CC) -c $(LIB_CFLAGS) $*.c | ||
| 75 | |||
| 76 | inflate.obj: inflate.c $(ZUTIL_H) infblock.h | ||
| 77 | $(CC) -c $(LIB_CFLAGS) $*.c | ||
| 78 | |||
| 79 | inftrees.obj: inftrees.c $(ZUTIL_H) inftrees.h | ||
| 80 | $(CC) -c $(LIB_CFLAGS) $*.c | ||
| 81 | |||
| 82 | infutil.obj: infutil.c $(ZUTIL_H) inftrees.h infutil.h | ||
| 83 | $(CC) -c $(LIB_CFLAGS) $*.c | ||
| 84 | |||
| 85 | inffast.obj: inffast.c $(ZUTIL_H) inftrees.h infutil.h inffast.h | ||
| 86 | $(CC) -c $(LIB_CFLAGS) $*.c | ||
| 87 | |||
| 88 | trees.obj: trees.c deflate.h $(ZUTIL_H) | ||
| 89 | $(CC) -c $(LIB_CFLAGS) $*.c | ||
| 90 | |||
| 91 | uncompr.obj: uncompr.c $(ZLIB_H) | ||
| 92 | $(CC) -c $(LIB_CFLAGS) $*.c | ||
| 93 | |||
| 94 | zutil.obj: zutil.c $(ZUTIL_H) | ||
| 95 | $(CC) -c $(LIB_CFLAGS) $*.c | ||
| 96 | |||
| 97 | example.obj: example.c $(ZLIB_H) | ||
| 98 | $(CC) -c $(CFLAGS) $*.c | ||
| 99 | |||
| 100 | minigzip.obj: minigzip.c $(ZLIB_H) | ||
| 101 | $(CC) -c $(CFLAGS) $*.c | ||
| 102 | |||
| 103 | # we must cut the command line to fit in the MS/DOS 128 byte limit: | ||
| 104 | $(ZLIB_LIB): $(OBJ1) $(OBJ2) | ||
| 105 | if exist $(ZLIB_LIB) del $(ZLIB_LIB) | ||
| 106 | lib $(ZLIB_LIB) $(OBJ1); | ||
| 107 | lib $(ZLIB_LIB) $(OBJ2); | ||
| 108 | |||
| 109 | example.exe: example.obj $(ZLIB_LIB) | ||
| 110 | $(LD) $(LDFLAGS) example.obj,,,$(ZLIB_LIB); | ||
| 111 | |||
| 112 | minigzip.exe: minigzip.obj $(ZLIB_LIB) | ||
| 113 | $(LD) $(LDFLAGS) minigzip.obj,,,$(ZLIB_LIB); | ||
| 114 | |||
| 115 | test: example.exe minigzip.exe | ||
| 116 | example | ||
| 117 | echo hello world | minigzip | minigzip -d | ||
| 118 | |||
| 119 | #clean: | ||
| 120 | # del *.obj | ||
| 121 | # del *.exe | ||
diff --git a/old/msdos/Makefile.w32 b/old/msdos/Makefile.w32 deleted file mode 100644 index 0a05fa9..0000000 --- a/old/msdos/Makefile.w32 +++ /dev/null | |||
| @@ -1,97 +0,0 @@ | |||
| 1 | # Makefile for zlib | ||
| 2 | # Microsoft 32-bit Visual C++ 4.0 or later (may work on earlier versions) | ||
| 3 | |||
| 4 | # To use, do "nmake /f makefile.w32" | ||
| 5 | |||
| 6 | # If you wish to reduce the memory requirements (default 256K for big | ||
| 7 | # objects plus a few K), you can add to CFLAGS below: | ||
| 8 | # -DMAX_MEM_LEVEL=7 -DMAX_WBITS=14 | ||
| 9 | # See zconf.h for details about the memory requirements. | ||
| 10 | |||
| 11 | # ------------- Microsoft Visual C++ 4.0 and later ------------- | ||
| 12 | MODEL= | ||
| 13 | CFLAGS=-Ox -GA3s -nologo -W3 | ||
| 14 | CC=cl | ||
| 15 | LD=link | ||
| 16 | LDFLAGS= | ||
| 17 | O=.obj | ||
| 18 | |||
| 19 | # variables | ||
| 20 | OBJ1 = adler32$(O) compress$(O) crc32$(O) gzio$(O) uncompr$(O) deflate$(O) \ | ||
| 21 | trees$(O) | ||
| 22 | OBJP1 = adler32$(O)+compress$(O)+crc32$(O)+gzio$(O)+uncompr$(O)+deflate$(O)+\ | ||
| 23 | trees$(O) | ||
| 24 | OBJ2 = zutil$(O) inflate$(O) infblock$(O) inftrees$(O) infcodes$(O) \ | ||
| 25 | infutil$(O) inffast$(O) | ||
| 26 | OBJP2 = zutil$(O)+inflate$(O)+infblock$(O)+inftrees$(O)+infcodes$(O)+\ | ||
| 27 | infutil$(O)+inffast$(O) | ||
| 28 | |||
| 29 | all: zlib.lib example.exe minigzip.exe | ||
| 30 | |||
| 31 | adler32.obj: adler32.c zlib.h zconf.h | ||
| 32 | $(CC) -c $(CFLAGS) $*.c | ||
| 33 | |||
| 34 | compress.obj: compress.c zlib.h zconf.h | ||
| 35 | $(CC) -c $(CFLAGS) $*.c | ||
| 36 | |||
| 37 | crc32.obj: crc32.c zlib.h zconf.h | ||
| 38 | $(CC) -c $(CFLAGS) $*.c | ||
| 39 | |||
| 40 | deflate.obj: deflate.c deflate.h zutil.h zlib.h zconf.h | ||
| 41 | $(CC) -c $(CFLAGS) $*.c | ||
| 42 | |||
| 43 | gzio.obj: gzio.c zutil.h zlib.h zconf.h | ||
| 44 | $(CC) -c $(CFLAGS) $*.c | ||
| 45 | |||
| 46 | infblock.obj: infblock.c zutil.h zlib.h zconf.h infblock.h inftrees.h\ | ||
| 47 | infcodes.h infutil.h | ||
| 48 | $(CC) -c $(CFLAGS) $*.c | ||
| 49 | |||
| 50 | infcodes.obj: infcodes.c zutil.h zlib.h zconf.h inftrees.h infutil.h\ | ||
| 51 | infcodes.h inffast.h | ||
| 52 | $(CC) -c $(CFLAGS) $*.c | ||
| 53 | |||
| 54 | inflate.obj: inflate.c zutil.h zlib.h zconf.h infblock.h | ||
| 55 | $(CC) -c $(CFLAGS) $*.c | ||
| 56 | |||
| 57 | inftrees.obj: inftrees.c zutil.h zlib.h zconf.h inftrees.h | ||
| 58 | $(CC) -c $(CFLAGS) $*.c | ||
| 59 | |||
| 60 | infutil.obj: infutil.c zutil.h zlib.h zconf.h inftrees.h infutil.h | ||
| 61 | $(CC) -c $(CFLAGS) $*.c | ||
| 62 | |||
| 63 | inffast.obj: inffast.c zutil.h zlib.h zconf.h inftrees.h infutil.h inffast.h | ||
| 64 | $(CC) -c $(CFLAGS) $*.c | ||
| 65 | |||
| 66 | trees.obj: trees.c deflate.h zutil.h zlib.h zconf.h | ||
| 67 | $(CC) -c $(CFLAGS) $*.c | ||
| 68 | |||
| 69 | uncompr.obj: uncompr.c zlib.h zconf.h | ||
| 70 | $(CC) -c $(CFLAGS) $*.c | ||
| 71 | |||
| 72 | zutil.obj: zutil.c zutil.h zlib.h zconf.h | ||
| 73 | $(CC) -c $(CFLAGS) $*.c | ||
| 74 | |||
| 75 | example.obj: example.c zlib.h zconf.h | ||
| 76 | $(CC) -c $(CFLAGS) $*.c | ||
| 77 | |||
| 78 | minigzip.obj: minigzip.c zlib.h zconf.h | ||
| 79 | $(CC) -c $(CFLAGS) $*.c | ||
| 80 | |||
| 81 | zlib.lib: $(OBJ1) $(OBJ2) | ||
| 82 | if exist zlib.lib del zlib.lib | ||
| 83 | lib /OUT:zlib.lib $(OBJ1) $(OBJ2) | ||
| 84 | |||
| 85 | example.exe: example.obj zlib.lib | ||
| 86 | $(LD) $(LDFLAGS) example.obj zlib.lib /OUT:example.exe /SUBSYSTEM:CONSOLE | ||
| 87 | |||
| 88 | minigzip.exe: minigzip.obj zlib.lib | ||
| 89 | $(LD) $(LDFLAGS) minigzip.obj zlib.lib /OUT:minigzip.exe /SUBSYSTEM:CONSOLE | ||
| 90 | |||
| 91 | test: example.exe minigzip.exe | ||
| 92 | example | ||
| 93 | echo hello world | minigzip | minigzip -d | ||
| 94 | |||
| 95 | #clean: | ||
| 96 | # del *.obj | ||
| 97 | # del *.exe | ||
diff --git a/old/msdos/Makefile.wat b/old/msdos/Makefile.wat index 44bf860..065fe4c 100644 --- a/old/msdos/Makefile.wat +++ b/old/msdos/Makefile.wat | |||
| @@ -2,8 +2,8 @@ | |||
| 2 | # Watcom 10a | 2 | # Watcom 10a |
| 3 | 3 | ||
| 4 | # This version of the zlib makefile was adapted by Chris Young for use | 4 | # This version of the zlib makefile was adapted by Chris Young for use |
| 5 | # with Watcom 10a 32-bit protected mode flat memory model. It was created | 5 | # with Watcom 10a 32-bit protected mode flat memory model. It was created |
| 6 | # for use with POV-Ray ray tracer and you may choose to edit the CFLAGS to | 6 | # for use with POV-Ray ray tracer and you may choose to edit the CFLAGS to |
| 7 | # suit your needs but the -DMSDOS is required. | 7 | # suit your needs but the -DMSDOS is required. |
| 8 | # -- Chris Young 76702.1655@compuserve.com | 8 | # -- Chris Young 76702.1655@compuserve.com |
| 9 | 9 | ||
| @@ -12,17 +12,17 @@ | |||
| 12 | # See zconf.h for details about the memory requirements. | 12 | # See zconf.h for details about the memory requirements. |
| 13 | 13 | ||
| 14 | # ------------- Watcom 10a ------------- | 14 | # ------------- Watcom 10a ------------- |
| 15 | MODEL=-mf | 15 | MODEL=-mf |
| 16 | CFLAGS= $(MODEL) -fpi87 -fp5 -zp4 -5r -w5 -oneatx -DMSDOS | 16 | CFLAGS= $(MODEL) -fpi87 -fp5 -zp4 -5r -w5 -oneatx -DMSDOS |
| 17 | CC=wcc386 | 17 | CC=wcc386 |
| 18 | LD=wcl386 | 18 | LD=wcl386 |
| 19 | LIB=wlib -b -c | 19 | LIB=wlib -b -c |
| 20 | LDFLAGS= | 20 | LDFLAGS= |
| 21 | O=.obj | 21 | O=.obj |
| 22 | 22 | ||
| 23 | # variables | 23 | # variables |
| 24 | OBJ1=adler32$(O) compress$(O) crc32$(O) gzio$(O) uncompr$(O) deflate$(O) | 24 | OBJ1=adler32$(O) compress$(O) crc32$(O) gzio$(O) uncompr$(O) deflate$(O) |
| 25 | OBJ2=trees$(O) zutil$(O) inflate$(O) infblock$(O) inftrees$(O) infcodes$(O) | 25 | OBJ2=trees$(O) zutil$(O) inflate$(O) infblock$(O) inftrees$(O) infcodes$(O) |
| 26 | OBJ3=infutil$(O) inffast$(O) | 26 | OBJ3=infutil$(O) inffast$(O) |
| 27 | OBJP1=adler32$(O)+compress$(O)+crc32$(O)+gzio$(O)+uncompr$(O)+deflate$(O) | 27 | OBJP1=adler32$(O)+compress$(O)+crc32$(O)+gzio$(O)+uncompr$(O)+deflate$(O) |
| 28 | OBJP2=trees$(O)+zutil$(O)+inflate$(O)+infblock$(O)+inftrees$(O)+infcodes$(O) | 28 | OBJP2=trees$(O)+zutil$(O)+inflate$(O)+infblock$(O)+inftrees$(O)+infcodes$(O) |
| @@ -81,7 +81,7 @@ minigzip.obj: minigzip.c zlib.h zconf.h | |||
| 81 | $(CC) $(CFLAGS) $*.c | 81 | $(CC) $(CFLAGS) $*.c |
| 82 | 82 | ||
| 83 | # we must cut the command line to fit in the MS/DOS 128 byte limit: | 83 | # we must cut the command line to fit in the MS/DOS 128 byte limit: |
| 84 | zlib.lib: $(OBJ1) $(OBJ2) $(OBJ3) | 84 | zlib.lib: $(OBJ1) $(OBJ2) $(OBJ3) |
| 85 | del zlib.lib | 85 | del zlib.lib |
| 86 | $(LIB) zlib.lib +$(OBJP1) | 86 | $(LIB) zlib.lib +$(OBJP1) |
| 87 | $(LIB) zlib.lib +$(OBJP2) | 87 | $(LIB) zlib.lib +$(OBJP2) |
diff --git a/old/msdos/zlib.def b/old/msdos/zlib.def deleted file mode 100644 index 6c04412..0000000 --- a/old/msdos/zlib.def +++ /dev/null | |||
| @@ -1,60 +0,0 @@ | |||
| 1 | LIBRARY "zlib" | ||
| 2 | |||
| 3 | DESCRIPTION '"""zlib data compression library"""' | ||
| 4 | |||
| 5 | EXETYPE NT | ||
| 6 | |||
| 7 | SUBSYSTEM WINDOWS | ||
| 8 | |||
| 9 | STUB 'WINSTUB.EXE' | ||
| 10 | |||
| 11 | VERSION 1.13 | ||
| 12 | |||
| 13 | CODE EXECUTE READ | ||
| 14 | |||
| 15 | DATA READ WRITE | ||
| 16 | |||
| 17 | HEAPSIZE 1048576,4096 | ||
| 18 | |||
| 19 | EXPORTS | ||
| 20 | adler32 @1 | ||
| 21 | compress @2 | ||
| 22 | crc32 @3 | ||
| 23 | deflate @4 | ||
| 24 | deflateCopy @5 | ||
| 25 | deflateEnd @6 | ||
| 26 | deflateInit2_ @7 | ||
| 27 | deflateInit_ @8 | ||
| 28 | deflateParams @9 | ||
| 29 | deflateReset @10 | ||
| 30 | deflateSetDictionary @11 | ||
| 31 | gzclose @12 | ||
| 32 | gzdopen @13 | ||
| 33 | gzerror @14 | ||
| 34 | gzflush @15 | ||
| 35 | gzopen @16 | ||
| 36 | gzread @17 | ||
| 37 | gzwrite @18 | ||
| 38 | inflate @19 | ||
| 39 | inflateEnd @20 | ||
| 40 | inflateInit2_ @21 | ||
| 41 | inflateInit_ @22 | ||
| 42 | inflateReset @23 | ||
| 43 | inflateSetDictionary @24 | ||
| 44 | inflateSync @25 | ||
| 45 | uncompress @26 | ||
| 46 | zlibVersion @27 | ||
| 47 | gzprintf @28 | ||
| 48 | gzputc @29 | ||
| 49 | gzgetc @30 | ||
| 50 | gzseek @31 | ||
| 51 | gzrewind @32 | ||
| 52 | gztell @33 | ||
| 53 | gzeof @34 | ||
| 54 | gzsetparams @35 | ||
| 55 | zError @36 | ||
| 56 | inflateSyncPoint @37 | ||
| 57 | get_crc_table @38 | ||
| 58 | compress2 @39 | ||
| 59 | gzputs @40 | ||
| 60 | gzgets @41 | ||
diff --git a/old/msdos/zlib.rc b/old/msdos/zlib.rc deleted file mode 100644 index 556d4ff..0000000 --- a/old/msdos/zlib.rc +++ /dev/null | |||
| @@ -1,32 +0,0 @@ | |||
| 1 | #include <windows.h> | ||
| 2 | |||
| 3 | #define IDR_VERSION1 1 | ||
| 4 | IDR_VERSION1 VERSIONINFO MOVEABLE IMPURE LOADONCALL DISCARDABLE | ||
| 5 | FILEVERSION 1,1,3,0 | ||
| 6 | PRODUCTVERSION 1,1,3,0 | ||
| 7 | FILEFLAGSMASK VS_FFI_FILEFLAGSMASK | ||
| 8 | FILEFLAGS 0 | ||
| 9 | FILEOS VOS_DOS_WINDOWS32 | ||
| 10 | FILETYPE VFT_DLL | ||
| 11 | FILESUBTYPE 0 // not used | ||
| 12 | BEGIN | ||
| 13 | BLOCK "StringFileInfo" | ||
| 14 | BEGIN | ||
| 15 | BLOCK "040904E4" | ||
| 16 | //language ID = U.S. English, char set = Windows, Multilingual | ||
| 17 | |||
| 18 | BEGIN | ||
| 19 | VALUE "FileDescription", "zlib data compression library\0" | ||
| 20 | VALUE "FileVersion", "1.1.3\0" | ||
| 21 | VALUE "InternalName", "zlib\0" | ||
| 22 | VALUE "OriginalFilename", "zlib.dll\0" | ||
| 23 | VALUE "ProductName", "ZLib.DLL\0" | ||
| 24 | VALUE "Comments","DLL support by Alessandro Iacopetti & Gilles Vollant\0" | ||
| 25 | VALUE "LegalCopyright", "(C) 1995-1998 Jean-loup Gailly & Mark Adler\0" | ||
| 26 | END | ||
| 27 | END | ||
| 28 | BLOCK "VarFileInfo" | ||
| 29 | BEGIN | ||
| 30 | VALUE "Translation", 0x0409, 1252 | ||
| 31 | END | ||
| 32 | END | ||
diff --git a/old/nt/Makefile.emx b/old/nt/Makefile.emx deleted file mode 100644 index 2d475b1..0000000 --- a/old/nt/Makefile.emx +++ /dev/null | |||
| @@ -1,138 +0,0 @@ | |||
| 1 | # Makefile for zlib. Modified for emx/rsxnt by Chr. Spieler, 6/16/98. | ||
| 2 | # Copyright (C) 1995-1998 Jean-loup Gailly. | ||
| 3 | # For conditions of distribution and use, see copyright notice in zlib.h | ||
| 4 | |||
| 5 | # To compile, or to compile and test, type: | ||
| 6 | # | ||
| 7 | # make -fmakefile.emx; make test -fmakefile.emx | ||
| 8 | # | ||
| 9 | |||
| 10 | CC=gcc -Zwin32 | ||
| 11 | |||
| 12 | #CFLAGS=-MMD -O | ||
| 13 | #CFLAGS=-O -DMAX_WBITS=14 -DMAX_MEM_LEVEL=7 | ||
| 14 | #CFLAGS=-MMD -g -DDEBUG | ||
| 15 | CFLAGS=-MMD -O3 $(BUTT) -Wall -Wwrite-strings -Wpointer-arith -Wconversion \ | ||
| 16 | -Wstrict-prototypes -Wmissing-prototypes | ||
| 17 | |||
| 18 | # If cp.exe is available, replace "copy /Y" with "cp -fp" . | ||
| 19 | CP=copy /Y | ||
| 20 | # If gnu install.exe is available, replace $(CP) with ginstall. | ||
| 21 | INSTALL=$(CP) | ||
| 22 | # The default value of RM is "rm -f." If "rm.exe" is found, comment out: | ||
| 23 | RM=del | ||
| 24 | LDLIBS=-L. -lzlib | ||
| 25 | LD=$(CC) -s -o | ||
| 26 | LDSHARED=$(CC) | ||
| 27 | |||
| 28 | INCL=zlib.h zconf.h | ||
| 29 | LIBS=zlib.a | ||
| 30 | |||
| 31 | AR=ar rcs | ||
| 32 | |||
| 33 | prefix=/usr/local | ||
| 34 | exec_prefix = $(prefix) | ||
| 35 | |||
| 36 | OBJS = adler32.o compress.o crc32.o gzio.o uncompr.o deflate.o trees.o \ | ||
| 37 | zutil.o inflate.o infblock.o inftrees.o infcodes.o infutil.o inffast.o | ||
| 38 | |||
| 39 | TEST_OBJS = example.o minigzip.o | ||
| 40 | |||
| 41 | all: example.exe minigzip.exe | ||
| 42 | |||
| 43 | test: all | ||
| 44 | ./example | ||
| 45 | echo hello world | .\minigzip | .\minigzip -d | ||
| 46 | |||
| 47 | %.o : %.c | ||
| 48 | $(CC) $(CFLAGS) -c $< -o $@ | ||
| 49 | |||
| 50 | zlib.a: $(OBJS) | ||
| 51 | $(AR) $@ $(OBJS) | ||
| 52 | |||
| 53 | %.exe : %.o $(LIBS) | ||
| 54 | $(LD) $@ $< $(LDLIBS) | ||
| 55 | |||
| 56 | |||
| 57 | .PHONY : clean | ||
| 58 | |||
| 59 | clean: | ||
| 60 | $(RM) *.d | ||
| 61 | $(RM) *.o | ||
| 62 | $(RM) *.exe | ||
| 63 | $(RM) zlib.a | ||
| 64 | $(RM) foo.gz | ||
| 65 | |||
| 66 | DEPS := $(wildcard *.d) | ||
| 67 | ifneq ($(DEPS),) | ||
| 68 | include $(DEPS) | ||
| 69 | endif | ||
| 70 | # Makefile for zlib. Modified for emx 0.9c by Chr. Spieler, 6/17/98. | ||
| 71 | # Copyright (C) 1995-1998 Jean-loup Gailly. | ||
| 72 | # For conditions of distribution and use, see copyright notice in zlib.h | ||
| 73 | |||
| 74 | # To compile, or to compile and test, type: | ||
| 75 | # | ||
| 76 | # make -fmakefile.emx; make test -fmakefile.emx | ||
| 77 | # | ||
| 78 | |||
| 79 | CC=gcc | ||
| 80 | |||
| 81 | #CFLAGS=-MMD -O | ||
| 82 | #CFLAGS=-O -DMAX_WBITS=14 -DMAX_MEM_LEVEL=7 | ||
| 83 | #CFLAGS=-MMD -g -DDEBUG | ||
| 84 | CFLAGS=-MMD -O3 $(BUTT) -Wall -Wwrite-strings -Wpointer-arith -Wconversion \ | ||
| 85 | -Wstrict-prototypes -Wmissing-prototypes | ||
| 86 | |||
| 87 | # If cp.exe is available, replace "copy /Y" with "cp -fp" . | ||
| 88 | CP=copy /Y | ||
| 89 | # If gnu install.exe is available, replace $(CP) with ginstall. | ||
| 90 | INSTALL=$(CP) | ||
| 91 | # The default value of RM is "rm -f." If "rm.exe" is found, comment out: | ||
| 92 | RM=del | ||
| 93 | LDLIBS=-L. -lzlib | ||
| 94 | LD=$(CC) -s -o | ||
| 95 | LDSHARED=$(CC) | ||
| 96 | |||
| 97 | INCL=zlib.h zconf.h | ||
| 98 | LIBS=zlib.a | ||
| 99 | |||
| 100 | AR=ar rcs | ||
| 101 | |||
| 102 | prefix=/usr/local | ||
| 103 | exec_prefix = $(prefix) | ||
| 104 | |||
| 105 | OBJS = adler32.o compress.o crc32.o gzio.o uncompr.o deflate.o trees.o \ | ||
| 106 | zutil.o inflate.o infblock.o inftrees.o infcodes.o infutil.o inffast.o | ||
| 107 | |||
| 108 | TEST_OBJS = example.o minigzip.o | ||
| 109 | |||
| 110 | all: example.exe minigzip.exe | ||
| 111 | |||
| 112 | test: all | ||
| 113 | ./example | ||
| 114 | echo hello world | .\minigzip | .\minigzip -d | ||
| 115 | |||
| 116 | %.o : %.c | ||
| 117 | $(CC) $(CFLAGS) -c $< -o $@ | ||
| 118 | |||
| 119 | zlib.a: $(OBJS) | ||
| 120 | $(AR) $@ $(OBJS) | ||
| 121 | |||
| 122 | %.exe : %.o $(LIBS) | ||
| 123 | $(LD) $@ $< $(LDLIBS) | ||
| 124 | |||
| 125 | |||
| 126 | .PHONY : clean | ||
| 127 | |||
| 128 | clean: | ||
| 129 | $(RM) *.d | ||
| 130 | $(RM) *.o | ||
| 131 | $(RM) *.exe | ||
| 132 | $(RM) zlib.a | ||
| 133 | $(RM) foo.gz | ||
| 134 | |||
| 135 | DEPS := $(wildcard *.d) | ||
| 136 | ifneq ($(DEPS),) | ||
| 137 | include $(DEPS) | ||
| 138 | endif | ||
diff --git a/old/nt/Makefile.gcc b/old/nt/Makefile.gcc deleted file mode 100644 index cdd652f..0000000 --- a/old/nt/Makefile.gcc +++ /dev/null | |||
| @@ -1,87 +0,0 @@ | |||
| 1 | # Makefile for zlib. Modified for mingw32 by C. Spieler, 6/16/98. | ||
| 2 | # (This Makefile is directly derived from Makefile.dj2) | ||
| 3 | # Copyright (C) 1995-1998 Jean-loup Gailly. | ||
| 4 | # For conditions of distribution and use, see copyright notice in zlib.h | ||
| 5 | |||
| 6 | # To compile, or to compile and test, type: | ||
| 7 | # | ||
| 8 | # make -fmakefile.gcc; make test -fmakefile.gcc | ||
| 9 | # | ||
| 10 | # To install libz.a, zconf.h and zlib.h in the mingw32 directories, type: | ||
| 11 | # | ||
| 12 | # make install -fmakefile.gcc | ||
| 13 | # | ||
| 14 | |||
| 15 | CC=gcc | ||
| 16 | |||
| 17 | #CFLAGS=-MMD -O | ||
| 18 | #CFLAGS=-O -DMAX_WBITS=14 -DMAX_MEM_LEVEL=7 | ||
| 19 | #CFLAGS=-MMD -g -DDEBUG | ||
| 20 | CFLAGS=-MMD -O3 $(BUTT) -Wall -Wwrite-strings -Wpointer-arith -Wconversion \ | ||
| 21 | -Wstrict-prototypes -Wmissing-prototypes | ||
| 22 | |||
| 23 | # If cp.exe is available, replace "copy /Y" with "cp -fp" . | ||
| 24 | CP=copy /Y | ||
| 25 | # If gnu install.exe is available, replace $(CP) with ginstall. | ||
| 26 | INSTALL=$(CP) | ||
| 27 | # The default value of RM is "rm -f." If "rm.exe" is found, comment out: | ||
| 28 | RM=del | ||
| 29 | LDLIBS=-L. -lz | ||
| 30 | LD=$(CC) -s -o | ||
| 31 | LDSHARED=$(CC) | ||
| 32 | |||
| 33 | INCL=zlib.h zconf.h | ||
| 34 | LIBS=libz.a | ||
| 35 | |||
| 36 | AR=ar rcs | ||
| 37 | |||
| 38 | prefix=/usr/local | ||
| 39 | exec_prefix = $(prefix) | ||
| 40 | |||
| 41 | OBJS = adler32.o compress.o crc32.o gzio.o uncompr.o deflate.o trees.o \ | ||
| 42 | zutil.o inflate.o infblock.o inftrees.o infcodes.o infutil.o inffast.o | ||
| 43 | |||
| 44 | TEST_OBJS = example.o minigzip.o | ||
| 45 | |||
| 46 | all: example.exe minigzip.exe | ||
| 47 | |||
| 48 | test: all | ||
| 49 | ./example | ||
| 50 | echo hello world | .\minigzip | .\minigzip -d | ||
| 51 | |||
| 52 | %.o : %.c | ||
| 53 | $(CC) $(CFLAGS) -c $< -o $@ | ||
| 54 | |||
| 55 | libz.a: $(OBJS) | ||
| 56 | $(AR) $@ $(OBJS) | ||
| 57 | |||
| 58 | %.exe : %.o $(LIBS) | ||
| 59 | $(LD) $@ $< $(LDLIBS) | ||
| 60 | |||
| 61 | # INCLUDE_PATH and LIBRARY_PATH were set for [make] in djgpp.env . | ||
| 62 | |||
| 63 | .PHONY : uninstall clean | ||
| 64 | |||
| 65 | install: $(INCL) $(LIBS) | ||
| 66 | -@if not exist $(INCLUDE_PATH)\nul mkdir $(INCLUDE_PATH) | ||
| 67 | -@if not exist $(LIBRARY_PATH)\nul mkdir $(LIBRARY_PATH) | ||
| 68 | $(INSTALL) zlib.h $(INCLUDE_PATH) | ||
| 69 | $(INSTALL) zconf.h $(INCLUDE_PATH) | ||
| 70 | $(INSTALL) libz.a $(LIBRARY_PATH) | ||
| 71 | |||
| 72 | uninstall: | ||
| 73 | $(RM) $(INCLUDE_PATH)\zlib.h | ||
| 74 | $(RM) $(INCLUDE_PATH)\zconf.h | ||
| 75 | $(RM) $(LIBRARY_PATH)\libz.a | ||
| 76 | |||
| 77 | clean: | ||
| 78 | $(RM) *.d | ||
| 79 | $(RM) *.o | ||
| 80 | $(RM) *.exe | ||
| 81 | $(RM) libz.a | ||
| 82 | $(RM) foo.gz | ||
| 83 | |||
| 84 | DEPS := $(wildcard *.d) | ||
| 85 | ifneq ($(DEPS),) | ||
| 86 | include $(DEPS) | ||
| 87 | endif | ||
diff --git a/old/nt/Makefile.nt b/old/nt/Makefile.nt deleted file mode 100644 index b250f2a..0000000 --- a/old/nt/Makefile.nt +++ /dev/null | |||
| @@ -1,88 +0,0 @@ | |||
| 1 | # Makefile for zlib | ||
| 2 | |||
| 3 | !include <ntwin32.mak> | ||
| 4 | |||
| 5 | CC=cl | ||
| 6 | LD=link | ||
| 7 | CFLAGS=-O -nologo | ||
| 8 | LDFLAGS= | ||
| 9 | O=.obj | ||
| 10 | |||
| 11 | # variables | ||
| 12 | OBJ1 = adler32$(O) compress$(O) crc32$(O) gzio$(O) uncompr$(O) deflate$(O) \ | ||
| 13 | trees$(O) | ||
| 14 | OBJ2 = zutil$(O) inflate$(O) infblock$(O) inftrees$(O) infcodes$(O) \ | ||
| 15 | infutil$(O) inffast$(O) | ||
| 16 | |||
| 17 | all: zlib.dll example.exe minigzip.exe | ||
| 18 | |||
| 19 | adler32.obj: adler32.c zutil.h zlib.h zconf.h | ||
| 20 | $(CC) -c $(cvarsdll) $(CFLAGS) $*.c | ||
| 21 | |||
| 22 | compress.obj: compress.c zlib.h zconf.h | ||
| 23 | $(CC) -c $(cvarsdll) $(CFLAGS) $*.c | ||
| 24 | |||
| 25 | crc32.obj: crc32.c zutil.h zlib.h zconf.h | ||
| 26 | $(CC) -c $(cvarsdll) $(CFLAGS) $*.c | ||
| 27 | |||
| 28 | deflate.obj: deflate.c deflate.h zutil.h zlib.h zconf.h | ||
| 29 | $(CC) -c $(cvarsdll) $(CFLAGS) $*.c | ||
| 30 | |||
| 31 | gzio.obj: gzio.c zutil.h zlib.h zconf.h | ||
| 32 | $(CC) -c $(cvarsdll) $(CFLAGS) $*.c | ||
| 33 | |||
| 34 | infblock.obj: infblock.c zutil.h zlib.h zconf.h infblock.h inftrees.h\ | ||
| 35 | infcodes.h infutil.h | ||
| 36 | $(CC) -c $(cvarsdll) $(CFLAGS) $*.c | ||
| 37 | |||
| 38 | infcodes.obj: infcodes.c zutil.h zlib.h zconf.h inftrees.h infutil.h\ | ||
| 39 | infcodes.h inffast.h | ||
| 40 | $(CC) -c $(cvarsdll) $(CFLAGS) $*.c | ||
| 41 | |||
| 42 | inflate.obj: inflate.c zutil.h zlib.h zconf.h infblock.h | ||
| 43 | $(CC) -c $(cvarsdll) $(CFLAGS) $*.c | ||
| 44 | |||
| 45 | inftrees.obj: inftrees.c zutil.h zlib.h zconf.h inftrees.h | ||
| 46 | $(CC) -c $(cvarsdll) $(CFLAGS) $*.c | ||
| 47 | |||
| 48 | infutil.obj: infutil.c zutil.h zlib.h zconf.h inftrees.h infutil.h | ||
| 49 | $(CC) -c $(cvarsdll) $(CFLAGS) $*.c | ||
| 50 | |||
| 51 | inffast.obj: inffast.c zutil.h zlib.h zconf.h inftrees.h infutil.h inffast.h | ||
| 52 | $(CC) -c $(cvarsdll) $(CFLAGS) $*.c | ||
| 53 | |||
| 54 | trees.obj: trees.c deflate.h zutil.h zlib.h zconf.h | ||
| 55 | $(CC) -c $(cvarsdll) $(CFLAGS) $*.c | ||
| 56 | |||
| 57 | uncompr.obj: uncompr.c zlib.h zconf.h | ||
| 58 | $(CC) -c $(cvarsdll) $(CFLAGS) $*.c | ||
| 59 | |||
| 60 | zutil.obj: zutil.c zutil.h zlib.h zconf.h | ||
| 61 | $(CC) -c $(cvarsdll) $(CFLAGS) $*.c | ||
| 62 | |||
| 63 | example.obj: example.c zlib.h zconf.h | ||
| 64 | $(CC) -c $(cvarsdll) $(CFLAGS) $*.c | ||
| 65 | |||
| 66 | minigzip.obj: minigzip.c zlib.h zconf.h | ||
| 67 | $(CC) -c $(cvarsdll) $(CFLAGS) $*.c | ||
| 68 | |||
| 69 | zlib.dll: $(OBJ1) $(OBJ2) zlib.dnt | ||
| 70 | link $(dlllflags) -out:$@ -def:zlib.dnt $(OBJ1) $(OBJ2) $(guilibsdll) | ||
| 71 | |||
| 72 | zlib.lib: zlib.dll | ||
| 73 | |||
| 74 | example.exe: example.obj zlib.lib | ||
| 75 | $(LD) $(LDFLAGS) example.obj zlib.lib | ||
| 76 | |||
| 77 | minigzip.exe: minigzip.obj zlib.lib | ||
| 78 | $(LD) $(LDFLAGS) minigzip.obj zlib.lib | ||
| 79 | |||
| 80 | test: example.exe minigzip.exe | ||
| 81 | example | ||
| 82 | echo hello world | minigzip | minigzip -d | ||
| 83 | |||
| 84 | clean: | ||
| 85 | del *.obj | ||
| 86 | del *.exe | ||
| 87 | del *.dll | ||
| 88 | del *.lib | ||
diff --git a/old/nt/zlib.dnt b/old/nt/zlib.dnt deleted file mode 100644 index 7f9475c..0000000 --- a/old/nt/zlib.dnt +++ /dev/null | |||
| @@ -1,47 +0,0 @@ | |||
| 1 | LIBRARY zlib.dll | ||
| 2 | EXETYPE WINDOWS | ||
| 3 | CODE PRELOAD MOVEABLE DISCARDABLE | ||
| 4 | DATA PRELOAD MOVEABLE MULTIPLE | ||
| 5 | |||
| 6 | EXPORTS | ||
| 7 | adler32 @1 | ||
| 8 | compress @2 | ||
| 9 | crc32 @3 | ||
| 10 | deflate @4 | ||
| 11 | deflateCopy @5 | ||
| 12 | deflateEnd @6 | ||
| 13 | deflateInit2_ @7 | ||
| 14 | deflateInit_ @8 | ||
| 15 | deflateParams @9 | ||
| 16 | deflateReset @10 | ||
| 17 | deflateSetDictionary @11 | ||
| 18 | gzclose @12 | ||
| 19 | gzdopen @13 | ||
| 20 | gzerror @14 | ||
| 21 | gzflush @15 | ||
| 22 | gzopen @16 | ||
| 23 | gzread @17 | ||
| 24 | gzwrite @18 | ||
| 25 | inflate @19 | ||
| 26 | inflateEnd @20 | ||
| 27 | inflateInit2_ @21 | ||
| 28 | inflateInit_ @22 | ||
| 29 | inflateReset @23 | ||
| 30 | inflateSetDictionary @24 | ||
| 31 | inflateSync @25 | ||
| 32 | uncompress @26 | ||
| 33 | zlibVersion @27 | ||
| 34 | gzprintf @28 | ||
| 35 | gzputc @29 | ||
| 36 | gzgetc @30 | ||
| 37 | gzseek @31 | ||
| 38 | gzrewind @32 | ||
| 39 | gztell @33 | ||
| 40 | gzeof @34 | ||
| 41 | gzsetparams @35 | ||
| 42 | zError @36 | ||
| 43 | inflateSyncPoint @37 | ||
| 44 | get_crc_table @38 | ||
| 45 | compress2 @39 | ||
| 46 | gzputs @40 | ||
| 47 | gzgets @41 | ||
diff --git a/old/os2/Makefile.os2 b/old/os2/Makefile.os2 index 4f56947..a105aaa 100644 --- a/old/os2/Makefile.os2 +++ b/old/os2/Makefile.os2 | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | # Makefile for zlib under OS/2 using GCC (PGCC) | 1 | # Makefile for zlib under OS/2 using GCC (PGCC) |
| 2 | # For conditions of distribution and use, see copyright notice in zlib.h | 2 | # For conditions of distribution and use, see copyright notice in zlib.h |
| 3 | 3 | ||
| 4 | # To compile and test, type: | 4 | # To compile and test, type: |
| 5 | # cp Makefile.os2 .. | 5 | # cp Makefile.os2 .. |
| @@ -108,7 +108,7 @@ dist: | |||
| 108 | if test ! -d $$d; then rm -f $$d; fi | 108 | if test ! -d $$d; then rm -f $$d; fi |
| 109 | mv Makefile~ Makefile | 109 | mv Makefile~ Makefile |
| 110 | 110 | ||
| 111 | tags: | 111 | tags: |
| 112 | etags *.[ch] | 112 | etags *.[ch] |
| 113 | 113 | ||
| 114 | depend: | 114 | depend: |
| @@ -130,7 +130,7 @@ inffast.o: infblock.h infcodes.h infutil.h inffast.h | |||
| 130 | inflate.o: zutil.h zlib.h zconf.h infblock.h | 130 | inflate.o: zutil.h zlib.h zconf.h infblock.h |
| 131 | inftrees.o: zutil.h zlib.h zconf.h inftrees.h | 131 | inftrees.o: zutil.h zlib.h zconf.h inftrees.h |
| 132 | infutil.o: zutil.h zlib.h zconf.h infblock.h inftrees.h infcodes.h infutil.h | 132 | infutil.o: zutil.h zlib.h zconf.h infblock.h inftrees.h infcodes.h infutil.h |
| 133 | minigzip.o: zlib.h zconf.h | 133 | minigzip.o: zlib.h zconf.h |
| 134 | trees.o: deflate.h zutil.h zlib.h zconf.h trees.h | 134 | trees.o: deflate.h zutil.h zlib.h zconf.h trees.h |
| 135 | uncompr.o: zlib.h zconf.h | 135 | uncompr.o: zlib.h zconf.h |
| 136 | zutil.o: zutil.h zlib.h zconf.h | 136 | zutil.o: zutil.h zlib.h zconf.h |
diff --git a/old/zlib.html b/old/zlib.html index c343703..8c1b190 100644 --- a/old/zlib.html +++ b/old/zlib.html | |||
| @@ -45,7 +45,7 @@ | |||
| 45 | </ol> | 45 | </ol> |
| 46 | 46 | ||
| 47 | <dl> | 47 | <dl> |
| 48 | <dt>Jean-loup Gailly | 48 | <dt>Jean-loup Gailly |
| 49 | <dd><a href="mailto:jloup@gzip.org">jloup@gzip.org</a> | 49 | <dd><a href="mailto:jloup@gzip.org">jloup@gzip.org</a> |
| 50 | <dt>Mark Adler | 50 | <dt>Mark Adler |
| 51 | <dd><a href="mailto:madler@alumni.caltech.edu">madler@alumni.caltech.edu</a> | 51 | <dd><a href="mailto:madler@alumni.caltech.edu">madler@alumni.caltech.edu</a> |
| @@ -55,19 +55,19 @@ | |||
| 55 | Comments) 1950 to 1952 in the files | 55 | Comments) 1950 to 1952 in the files |
| 56 | <a href="ftp://ds.internic.net/rfc/rfc1950.txt"> | 56 | <a href="ftp://ds.internic.net/rfc/rfc1950.txt"> |
| 57 | ftp://ds.internic.net/rfc/rfc1950.txt </a> | 57 | ftp://ds.internic.net/rfc/rfc1950.txt </a> |
| 58 | (zlib format), | 58 | (zlib format), |
| 59 | <a href="ftp://ds.internic.net/rfc/rfc1951.txt"> | 59 | <a href="ftp://ds.internic.net/rfc/rfc1951.txt"> |
| 60 | rfc1951.txt </a> | 60 | rfc1951.txt </a> |
| 61 | (<a href="#deflate">deflate</a> format) and | 61 | (<a href="#deflate">deflate</a> format) and |
| 62 | <a href="ftp://ds.internic.net/rfc/rfc1952.txt"> | 62 | <a href="ftp://ds.internic.net/rfc/rfc1952.txt"> |
| 63 | rfc1952.txt </a> | 63 | rfc1952.txt </a> |
| 64 | (gzip format). | 64 | (gzip format). |
| 65 | <p> | 65 | <p> |
| 66 | This manual is converted from zlib.h by | 66 | This manual is converted from zlib.h by |
| 67 | <a href="mailto:piaip@csie.ntu.edu.tw"> piaip </a> | 67 | <a href="mailto:piaip@csie.ntu.edu.tw"> piaip </a> |
| 68 | <p> | 68 | <p> |
| 69 | Visit <a href="http://ftp.cdrom.com/pub/infozip/zlib/"> | 69 | Visit <a href="http://ftp.cdrom.com/pub/infozip/zlib/"> |
| 70 | http://ftp.cdrom.com/pub/infozip/zlib/</a> | 70 | http://ftp.cdrom.com/pub/infozip/zlib/</a> |
| 71 | for the official zlib web page. | 71 | for the official zlib web page. |
| 72 | <p> | 72 | <p> |
| 73 | 73 | ||
| @@ -99,7 +99,7 @@ | |||
| 99 | <hr> | 99 | <hr> |
| 100 | <a name="Utility functions"><h2> Utility functions </h2> | 100 | <a name="Utility functions"><h2> Utility functions </h2> |
| 101 | The following utility functions are implemented on top of the | 101 | The following utility functions are implemented on top of the |
| 102 | <a href="#Basic functions">basic stream-oriented functions</a>. | 102 | <a href="#Basic functions">basic stream-oriented functions</a>. |
| 103 | To simplify the interface, some | 103 | To simplify the interface, some |
| 104 | default options are assumed (compression level and memory usage, | 104 | default options are assumed (compression level and memory usage, |
| 105 | standard memory allocation functions). The source code of these | 105 | standard memory allocation functions). The source code of these |
| @@ -406,7 +406,7 @@ | |||
| 406 | enough room in the output buffer), <a href="#next_in">next_in</a> and <a href="#avail_in">avail_in</a> are updated and | 406 | enough room in the output buffer), <a href="#next_in">next_in</a> and <a href="#avail_in">avail_in</a> are updated and |
| 407 | processing will resume at this point for the next call of <a href="#deflate">deflate</a>(). | 407 | processing will resume at this point for the next call of <a href="#deflate">deflate</a>(). |
| 408 | 408 | ||
| 409 | <li> | 409 | <li> |
| 410 | Provide more output starting at <a href="#next_out">next_out</a> and update <a href="#next_out">next_out</a> and <a href="#avail_out">avail_out</a> | 410 | Provide more output starting at <a href="#next_out">next_out</a> and update <a href="#next_out">next_out</a> and <a href="#avail_out">avail_out</a> |
| 411 | accordingly. This action is forced if the parameter flush is non zero. | 411 | accordingly. This action is forced if the parameter flush is non zero. |
| 412 | Forcing flush frequently degrades the compression ratio, so this parameter | 412 | Forcing flush frequently degrades the compression ratio, so this parameter |
| @@ -453,7 +453,7 @@ | |||
| 453 | <a href="#deflate">deflate</a> has returned <a href="#Z_STREAM_END">Z_STREAM_END</a>, the only possible operations on the | 453 | <a href="#deflate">deflate</a> has returned <a href="#Z_STREAM_END">Z_STREAM_END</a>, the only possible operations on the |
| 454 | stream are <a href="#deflateReset">deflateReset</a> or <a href="#deflateEnd">deflateEnd</a>. | 454 | stream are <a href="#deflateReset">deflateReset</a> or <a href="#deflateEnd">deflateEnd</a>. |
| 455 | <p> | 455 | <p> |
| 456 | 456 | ||
| 457 | <a href="#Z_FINISH">Z_FINISH</a> can be used immediately after <a href="#deflateInit">deflateInit</a> if all the compression | 457 | <a href="#Z_FINISH">Z_FINISH</a> can be used immediately after <a href="#deflateInit">deflateInit</a> if all the compression |
| 458 | is to be done in a single step. In this case, <a href="#avail_out">avail_out</a> must be at least | 458 | is to be done in a single step. In this case, <a href="#avail_out">avail_out</a> must be at least |
| 459 | 0.1% larger than <a href="#avail_in">avail_in</a> plus 12 bytes. If <a href="#deflate">deflate</a> does not return | 459 | 0.1% larger than <a href="#avail_in">avail_in</a> plus 12 bytes. If <a href="#deflate">deflate</a> does not return |
| @@ -493,7 +493,7 @@ | |||
| 493 | <p> | 493 | <p> |
| 494 | 494 | ||
| 495 | <font color="Blue"><dt> int <a name="inflateInit">inflateInit</a> (<a href="#z_streamp">z_streamp</a> strm);</font> | 495 | <font color="Blue"><dt> int <a name="inflateInit">inflateInit</a> (<a href="#z_streamp">z_streamp</a> strm);</font> |
| 496 | <dd> | 496 | <dd> |
| 497 | Initializes the internal stream <a href="#state">state</a> for decompression. The fields | 497 | Initializes the internal stream <a href="#state">state</a> for decompression. The fields |
| 498 | <a href="#next_in">next_in</a>, <a href="#avail_in">avail_in</a>, <a href="#zalloc">zalloc</a>, <a href="#zfree">zfree</a> and <a href="#opaque">opaque</a> must be initialized before by | 498 | <a href="#next_in">next_in</a>, <a href="#avail_in">avail_in</a>, <a href="#zalloc">zalloc</a>, <a href="#zfree">zfree</a> and <a href="#opaque">opaque</a> must be initialized before by |
| 499 | the caller. If <a href="#next_in">next_in</a> is not <a href="#Z_NULL">Z_NULL</a> and <a href="#avail_in">avail_in</a> is large enough (the exact | 499 | the caller. If <a href="#next_in">next_in</a> is not <a href="#Z_NULL">Z_NULL</a> and <a href="#avail_in">avail_in</a> is large enough (the exact |
| @@ -529,9 +529,9 @@ | |||
| 529 | enough room in the output buffer), <a href="#next_in">next_in</a> is updated and processing | 529 | enough room in the output buffer), <a href="#next_in">next_in</a> is updated and processing |
| 530 | will resume at this point for the next call of <a href="#inflate">inflate</a>(). | 530 | will resume at this point for the next call of <a href="#inflate">inflate</a>(). |
| 531 | 531 | ||
| 532 | <li> Provide more output starting at <a href="#next_out">next_out</a> and update <a href="#next_out">next_out</a> and | 532 | <li> Provide more output starting at <a href="#next_out">next_out</a> and update <a href="#next_out">next_out</a> and |
| 533 | <a href="#avail_out">avail_out</a> accordingly. <a href="#inflate">inflate</a>() provides as much output as possible, | 533 | <a href="#avail_out">avail_out</a> accordingly. <a href="#inflate">inflate</a>() provides as much output as possible, |
| 534 | until there is no more input data or no more space in the output buffer | 534 | until there is no more input data or no more space in the output buffer |
| 535 | (see below about the flush parameter). | 535 | (see below about the flush parameter). |
| 536 | </ul> <p> | 536 | </ul> <p> |
| 537 | 537 | ||
| @@ -566,7 +566,7 @@ | |||
| 566 | 566 | ||
| 567 | If a preset dictionary is needed at this point (see <a href="#inflateSetDictionary">inflateSetDictionary</a> | 567 | If a preset dictionary is needed at this point (see <a href="#inflateSetDictionary">inflateSetDictionary</a> |
| 568 | below), <a href="#inflate">inflate</a> sets strm-<a href="#adler">adler</a> to the <a href="#adler32">adler32</a> checksum of the | 568 | below), <a href="#inflate">inflate</a> sets strm-<a href="#adler">adler</a> to the <a href="#adler32">adler32</a> checksum of the |
| 569 | dictionary chosen by the compressor and returns <a href="#Z_NEED_DICT">Z_NEED_DICT</a> ; otherwise | 569 | dictionary chosen by the compressor and returns <a href="#Z_NEED_DICT">Z_NEED_DICT</a> ; otherwise |
| 570 | it sets strm-> <a href="#adler">adler</a> to the <a href="#adler32">adler32</a> checksum of all output produced | 570 | it sets strm-> <a href="#adler">adler</a> to the <a href="#adler32">adler32</a> checksum of all output produced |
| 571 | so far (that is, <a href="#total_out">total_out</a> bytes) and returns <a href="#Z_OK">Z_OK</a>, <a href="#Z_STREAM_END">Z_STREAM_END</a> or | 571 | so far (that is, <a href="#total_out">total_out</a> bytes) and returns <a href="#Z_OK">Z_OK</a>, <a href="#Z_STREAM_END">Z_STREAM_END</a> or |
| 572 | an error code as described below. At the end of the stream, <a href="#inflate">inflate</a>() | 572 | an error code as described below. At the end of the stream, <a href="#inflate">inflate</a>() |
| @@ -652,7 +652,7 @@ | |||
| 652 | memory, <a href="#Z_STREAM_ERROR">Z_STREAM_ERROR</a> if a parameter is invalid (such as an invalid | 652 | memory, <a href="#Z_STREAM_ERROR">Z_STREAM_ERROR</a> if a parameter is invalid (such as an invalid |
| 653 | method). <a href="#msg">msg</a> is set to null if there is no error message. <a href="#deflateInit2">deflateInit2</a> does | 653 | method). <a href="#msg">msg</a> is set to null if there is no error message. <a href="#deflateInit2">deflateInit2</a> does |
| 654 | not perform any compression: this will be done by <a href="#deflate">deflate</a>().<p> | 654 | not perform any compression: this will be done by <a href="#deflate">deflate</a>().<p> |
| 655 | 655 | ||
| 656 | <font color="Blue"><dt> int <a name="deflateSetDictionary">deflateSetDictionary</a> (<a href="#z_streamp">z_streamp</a> strm, const Bytef *dictionary, uInt dictLength);</font> | 656 | <font color="Blue"><dt> int <a name="deflateSetDictionary">deflateSetDictionary</a> (<a href="#z_streamp">z_streamp</a> strm, const Bytef *dictionary, uInt dictLength);</font> |
| 657 | <dd> | 657 | <dd> |
| 658 | Initializes the compression dictionary from the given byte sequence | 658 | Initializes the compression dictionary from the given byte sequence |
| @@ -723,7 +723,7 @@ | |||
| 723 | 723 | ||
| 724 | Before the call of <a href="#deflateParams">deflateParams</a>, the stream <a href="#state">state</a> must be set as for | 724 | Before the call of <a href="#deflateParams">deflateParams</a>, the stream <a href="#state">state</a> must be set as for |
| 725 | a call of <a href="#deflate">deflate</a>(), since the currently available input may have to | 725 | a call of <a href="#deflate">deflate</a>(), since the currently available input may have to |
| 726 | be compressed and flushed. In particular, strm-> <a href="#avail_out">avail_out</a> must be | 726 | be compressed and flushed. In particular, strm-> <a href="#avail_out">avail_out</a> must be |
| 727 | non-zero.<p> | 727 | non-zero.<p> |
| 728 | 728 | ||
| 729 | <a href="#deflateParams">deflateParams</a> returns <a href="#Z_OK">Z_OK</a> if success, <a href="#Z_STREAM_ERROR">Z_STREAM_ERROR</a> if the source | 729 | <a href="#deflateParams">deflateParams</a> returns <a href="#Z_OK">Z_OK</a> if success, <a href="#Z_STREAM_ERROR">Z_STREAM_ERROR</a> if the source |
| @@ -865,7 +865,7 @@ typedef struct z_stream_s { | |||
| 865 | uLong <a name="reserved">reserved</a>; /* <a href="#reserved">reserved</a> for future use */ | 865 | uLong <a name="reserved">reserved</a>; /* <a href="#reserved">reserved</a> for future use */ |
| 866 | } <a href="#z_stream_s">z_stream</a> ; | 866 | } <a href="#z_stream_s">z_stream</a> ; |
| 867 | 867 | ||
| 868 | typedef <a href="#z_stream_s">z_stream</a> FAR * <a name="z_streamp">z_streamp</a>; ÿ | 868 | typedef <a href="#z_stream_s">z_stream</a> FAR * <a name="z_streamp">z_streamp</a>; ÿ |
| 869 | </pre> | 869 | </pre> |
| 870 | </font> | 870 | </font> |
| 871 | The application must update <a href="#next_in">next_in</a> and <a href="#avail_in">avail_in</a> when <a href="#avail_in">avail_in</a> has | 871 | The application must update <a href="#next_in">next_in</a> and <a href="#avail_in">avail_in</a> when <a href="#avail_in">avail_in</a> has |
| @@ -904,7 +904,7 @@ typedef <a href="#z_stream_s">z_stream</a> FAR * <a name="z_streamp">z_streamp</ | |||
| 904 | <font color="Blue"> | 904 | <font color="Blue"> |
| 905 | <pre> | 905 | <pre> |
| 906 | #define <a name="Z_NO_FLUSH">Z_NO_FLUSH</a> 0 | 906 | #define <a name="Z_NO_FLUSH">Z_NO_FLUSH</a> 0 |
| 907 | #define <a name="Z_PARTIAL_FLUSH">Z_PARTIAL_FLUSH</a> 1 | 907 | #define <a name="Z_PARTIAL_FLUSH">Z_PARTIAL_FLUSH</a> 1 |
| 908 | /* will be removed, use <a href="#Z_SYNC_FLUSH">Z_SYNC_FLUSH</a> instead */ | 908 | /* will be removed, use <a href="#Z_SYNC_FLUSH">Z_SYNC_FLUSH</a> instead */ |
| 909 | #define <a name="Z_SYNC_FLUSH">Z_SYNC_FLUSH</a> 2 | 909 | #define <a name="Z_SYNC_FLUSH">Z_SYNC_FLUSH</a> 2 |
| 910 | #define <a name="Z_FULL_FLUSH">Z_FULL_FLUSH</a> 3 | 910 | #define <a name="Z_FULL_FLUSH">Z_FULL_FLUSH</a> 3 |
