Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Zlib
提交
1b57de3a
T
Third Party Zlib
项目概览
OpenHarmony
/
Third Party Zlib
1 年多 前同步成功
通知
16
Star
112
Fork
2
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
Third Party Zlib
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
1b57de3a
编写于
11月 21, 2011
作者:
M
Mark Adler
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Move example.c and minigzip.c to test/.
上级
0cbad869
变更
19
隐藏空白更改
内联
并排
Showing
19 changed file
with
45 addition
and
52 deletion
+45
-52
CMakeLists.txt
CMakeLists.txt
+4
-4
FAQ
FAQ
+2
-2
INDEX
INDEX
+3
-1
Makefile.in
Makefile.in
+8
-8
README
README
+6
-6
contrib/delphi/zlibd32.mak
contrib/delphi/zlibd32.mak
+2
-2
contrib/pascal/zlibd32.mak
contrib/pascal/zlibd32.mak
+2
-2
examples/README.examples
examples/README.examples
+0
-9
make_vms.com
make_vms.com
+4
-4
msdos/Makefile.bor
msdos/Makefile.bor
+2
-2
msdos/Makefile.msc
msdos/Makefile.msc
+2
-2
msdos/Makefile.tc
msdos/Makefile.tc
+2
-2
old/visualc6/example.dsp
old/visualc6/example.dsp
+1
-1
test/example.c
test/example.c
+0
-0
test/minigzip.c
test/minigzip.c
+0
-0
win32/Makefile.bor
win32/Makefile.bor
+2
-2
win32/Makefile.msc
win32/Makefile.msc
+2
-2
zlib.3
zlib.3
+3
-3
zlib.3.pdf
zlib.3.pdf
+0
-0
未找到文件。
CMakeLists.txt
浏览文件 @
1b57de3a
...
...
@@ -171,20 +171,20 @@ endif()
# Example binaries
#============================================================================
add_executable
(
example example.c
)
add_executable
(
example
test/
example.c
)
target_link_libraries
(
example zlib
)
add_test
(
example example
)
add_executable
(
minigzip minigzip.c
)
add_executable
(
minigzip
test/
minigzip.c
)
target_link_libraries
(
minigzip zlib
)
if
(
HAVE_OFF64_T
)
add_executable
(
example64 example.c
)
add_executable
(
example64
test/
example.c
)
target_link_libraries
(
example64 zlib
)
set_target_properties
(
example64 PROPERTIES COMPILE_FLAGS
"-D_FILE_OFFSET_BITS=64"
)
add_test
(
example64 example64
)
add_executable
(
minigzip64 minigzip.c
)
add_executable
(
minigzip64
test/
minigzip.c
)
target_link_libraries
(
minigzip64 zlib
)
set_target_properties
(
minigzip64 PROPERTIES COMPILE_FLAGS
"-D_FILE_OFFSET_BITS=64"
)
endif
()
FAQ
浏览文件 @
1b57de3a
...
...
@@ -44,8 +44,8 @@ The lastest zlib FAQ is at http://zlib.net/zlib_faq.html
6. Where's the zlib documentation (man pages, etc.)?
It's in zlib.h . Examples of zlib usage are in the files
example.c and
minigzip.c, with more in examples/ .
It's in zlib.h . Examples of zlib usage are in the files
test/example.c
and test/
minigzip.c, with more in examples/ .
7. Why don't you use GNU autoconf or libtool or ...?
...
...
INDEX
浏览文件 @
1b57de3a
...
...
@@ -7,6 +7,8 @@ Makefile.in template for Unix Makefile
README guess what
configure configure script for Unix
make_vms.com makefile for VMS
test/example.c zlib usages examples for build testing
test/minigzip.c minimal gzip-like functionality for build testing
treebuild.xml XML description of source file dependencies
zconf.h.cmakein zconf.h template for cmake
zconf.h.in zconf.h template for configure
...
...
@@ -17,7 +19,7 @@ zlib.pc.in Template for pkg-config descriptor
zlib2ansi perl script to convert source files for C++ compilation
amiga/ makefiles for Amiga SAS C
as400/
makefiles for AS/400
as400/
makefiles for AS/400
doc/ documentation for formats and algorithms
msdos/ makefiles for MSDOS
nintendods/ makefile for Nintendo DS
...
...
Makefile.in
浏览文件 @
1b57de3a
...
...
@@ -127,17 +127,17 @@ match.lo: match.S
mv
_match.o match.lo
rm
-f
_match.s
example.o
:
examples
/example.c zlib.h zconf.h
$(CC)
$(CFLAGS)
-I
.
-c
-o
$@
examples
/example.c
example.o
:
test
/example.c zlib.h zconf.h
$(CC)
$(CFLAGS)
-I
.
-c
-o
$@
test
/example.c
minigzip.o
:
examples
/minigzip.c zlib.h zconf.h
$(CC)
$(CFLAGS)
-I
.
-c
-o
$@
examples
/minigzip.c
minigzip.o
:
test
/minigzip.c zlib.h zconf.h
$(CC)
$(CFLAGS)
-I
.
-c
-o
$@
test
/minigzip.c
example64.o
:
examples
/example.c zlib.h zconf.h
$(CC)
$(CFLAGS)
-I
.
-D_FILE_OFFSET_BITS
=
64
-c
-o
$@
examples
/example.c
example64.o
:
test
/example.c zlib.h zconf.h
$(CC)
$(CFLAGS)
-I
.
-D_FILE_OFFSET_BITS
=
64
-c
-o
$@
test
/example.c
minigzip64.o
:
examples
/minigzip.c zlib.h zconf.h
$(CC)
$(CFLAGS)
-I
.
-D_FILE_OFFSET_BITS
=
64
-c
-o
$@
examples
/minigzip.c
minigzip64.o
:
test
/minigzip.c zlib.h zconf.h
$(CC)
$(CFLAGS)
-I
.
-D_FILE_OFFSET_BITS
=
64
-c
-o
$@
test
/minigzip.c
.SUFFIXES
:
.lo
...
...
README
浏览文件 @
1b57de3a
...
...
@@ -8,15 +8,15 @@ rfc1952 (gzip format).
All functions of the compression library are documented in the file zlib.h
(volunteer to write man pages welcome, contact zlib@gzip.org). A usage example
of the library is given in the file
example.c which also tests that the library
is working correctly. Another example is given in the file minigzip.c. Th
e
compression library itself is composed of all source files except example.c and
minigzip.c
.
of the library is given in the file
test/example.c which also tests that
the library is working correctly. Another example is given in the fil
e
test/minigzip.c. The compression library itself is composed of all source
files in the root directory
.
To compile all files and run the test program, follow the instructions given at
the top of Makefile.in. In short "./configure; make test", and if that goes
well, "make install" should work for most flavors of Unix. For Windows, use
one
of the special makefiles in win32/ or contrib/vstudio/ . For VMS, use
well, "make install" should work for most flavors of Unix. For Windows, use
o
ne o
f the special makefiles in win32/ or contrib/vstudio/ . For VMS, use
make_vms.com.
Questions about zlib should be sent to <zlib@gzip.org>, or to Gilles Vollant
...
...
contrib/delphi/zlibd32.mak
浏览文件 @
1b57de3a
...
...
@@ -63,9 +63,9 @@ uncompr.obj: uncompr.c zlib.h zconf.h
zutil.obj
:
zutil.c zutil.h zlib.h zconf.h
example.obj
:
example.c zlib.h zconf.h
example.obj
:
test/
example.c zlib.h zconf.h
minigzip.obj
:
minigzip.c zlib.h zconf.h
minigzip.obj
:
test/
minigzip.c zlib.h zconf.h
# For the sake of the old Borland make,
...
...
contrib/pascal/zlibd32.mak
浏览文件 @
1b57de3a
...
...
@@ -63,9 +63,9 @@ uncompr.obj: uncompr.c zlib.h zconf.h
zutil.obj
:
zutil.c zutil.h zlib.h zconf.h
example.obj
:
example.c zlib.h zconf.h
example.obj
:
test/
example.c zlib.h zconf.h
minigzip.obj
:
minigzip.c zlib.h zconf.h
minigzip.obj
:
test/
minigzip.c zlib.h zconf.h
# For the sake of the old Borland make,
...
...
examples/README.examples
浏览文件 @
1b57de3a
...
...
@@ -6,10 +6,6 @@ enough.c
- calculates the maximum table space used in inflate tree
construction over all possible Huffman codes
example.c
usage examples of zlib
- used in zlib build Makefile for testing
fitblk.c
compress just enough input to nearly fill a requested output size
- zlib isn't designed to do this, but fitblk does it anyway
...
...
@@ -38,11 +34,6 @@ gzlog.h
and deflateSetDictionary()
- illustrates use of a gzip header extra field
minigzip.c
minimal implementation of gzip-like functionality using zlib
- used in zlib build Makefile for testing
- is not meant for and should not be used as a gzip replacement
zlib_how.html
painfully comprehensive description of zpipe.c (see below)
- describes in excruciating detail the use of deflate() and inflate()
...
...
make_vms.com
浏览文件 @
1b57de3a
...
...
@@ -175,13 +175,13 @@ $ write sys$output "Building Zlib ..."
$ CALL MAKE libz.OLB "lib/crea libz.olb *.obj" *.OBJ
$ write sys$output "Building example..."
$ CALL MAKE example.OBJ "CC ''CCOPT' example" -
example.c zlib.h zconf.h
test/
example.c zlib.h zconf.h
$ call make example.exe "LINK example,libz.olb/lib" example.obj libz.olb
$ if f$search("x11vms:xvmsutils.olb") .nes. ""
$ then
$ write sys$output "Building minigzip..."
$ CALL MAKE minigzip.OBJ "CC ''CCOPT' minigzip" -
minigzip.c zlib.h zconf.h
test/
minigzip.c zlib.h zconf.h
$ call make minigzip.exe -
"LINK minigzip,libz.olb/lib,x11vms:xvmsutils.olb/lib" -
minigzip.obj libz.olb
...
...
@@ -431,7 +431,7 @@ adler32.obj : adler32.c zutil.h zlib.h zconf.h
compress.obj : compress.c zlib.h zconf.h
crc32.obj : crc32.c zutil.h zlib.h zconf.h
deflate.obj : deflate.c deflate.h zutil.h zlib.h zconf.h
example.obj : example.c zlib.h zconf.h
example.obj :
test/
example.c zlib.h zconf.h
gzclose.obj : gzclose.c zutil.h zlib.h zconf.h
gzlib.obj : gzlib.c zutil.h zlib.h zconf.h
gzread.obj : gzread.c zutil.h zlib.h zconf.h
...
...
@@ -439,7 +439,7 @@ gzwrite.obj : gzwrite.c zutil.h zlib.h zconf.h
inffast.obj : inffast.c zutil.h zlib.h zconf.h inftrees.h inffast.h
inflate.obj : inflate.c zutil.h zlib.h zconf.h
inftrees.obj : inftrees.c zutil.h zlib.h zconf.h inftrees.h
minigzip.obj : minigzip.c zlib.h zconf.h
minigzip.obj :
test/
minigzip.c zlib.h zconf.h
trees.obj : trees.c deflate.h zutil.h zlib.h zconf.h
uncompr.obj : uncompr.c zlib.h zconf.h
zutil.obj : zutil.c zutil.h zlib.h zconf.h
...
...
msdos/Makefile.bor
浏览文件 @
1b57de3a
...
...
@@ -86,9 +86,9 @@ uncompr.obj: uncompr.c zlib.h zconf.h
zutil.obj
:
zutil.c zutil.h zlib.h zconf.h
example.obj
:
example.c zlib.h zconf.h
example.obj
:
test/
example.c zlib.h zconf.h
minigzip.obj
:
minigzip.c zlib.h zconf.h
minigzip.obj
:
test/
minigzip.c zlib.h zconf.h
# the command line is cut to fit in the MS-DOS 128 byte limit:
...
...
msdos/Makefile.msc
浏览文件 @
1b57de3a
...
...
@@ -80,10 +80,10 @@ uncompr.obj: uncompr.c zlib.h zconf.h
zutil.obj
:
zutil.c zutil.h zlib.h zconf.h
example.obj
:
example.c zlib.h zconf.h
example.obj
:
test/
example.c zlib.h zconf.h
$(CC)
-c
$(CFLAGS)
$*
.c
minigzip.obj
:
minigzip.c zlib.h zconf.h
minigzip.obj
:
test/
minigzip.c zlib.h zconf.h
$(CC)
-c
$(CFLAGS)
$*
.c
...
...
msdos/Makefile.tc
浏览文件 @
1b57de3a
...
...
@@ -71,9 +71,9 @@ uncompr.obj: uncompr.c zlib.h zconf.h
zutil.obj
:
zutil.c zutil.h zlib.h zconf.h
example.obj
:
example.c zlib.h zconf.h
example.obj
:
test/
example.c zlib.h zconf.h
minigzip.obj
:
minigzip.c zlib.h zconf.h
minigzip.obj
:
test/
minigzip.c zlib.h zconf.h
# the command line is cut to fit in the MS-DOS 128 byte limit:
...
...
old/visualc6/example.dsp
浏览文件 @
1b57de3a
...
...
@@ -259,7 +259,7 @@ LINK32=link.exe
# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
# Begin Source File
SOURCE=..\..\example.c
SOURCE=..\..\
test\
example.c
# End Source File
# End Group
# Begin Group "Header Files"
...
...
examples
/example.c
→
test
/example.c
浏览文件 @
1b57de3a
文件已移动
examples
/minigzip.c
→
test
/minigzip.c
浏览文件 @
1b57de3a
文件已移动
win32/Makefile.bor
浏览文件 @
1b57de3a
...
...
@@ -74,9 +74,9 @@ uncompr.obj: uncompr.c zlib.h zconf.h
zutil.obj
:
zutil.c zutil.h zlib.h zconf.h
example.obj
:
example.c zlib.h zconf.h
example.obj
:
test/
example.c zlib.h zconf.h
minigzip.obj
:
minigzip.c zlib.h zconf.h
minigzip.obj
:
test/
minigzip.c zlib.h zconf.h
# For the sake of the old Borland make,
...
...
win32/Makefile.msc
浏览文件 @
1b57de3a
...
...
@@ -125,9 +125,9 @@ inffas32.obj: contrib\masmx86\inffas32.asm
match686.obj
:
contrib
\m
asmx86
\m
atch686.asm
example.obj
:
example.c zlib.h zconf.h
example.obj
:
test/
example.c zlib.h zconf.h
minigzip.obj
:
minigzip.c zlib.h zconf.h
minigzip.obj
:
test/
minigzip.c zlib.h zconf.h
zlib1.res
:
win32/zlib1.rc
$(RC)
$(RCFLAGS)
/fo
$@
win32/zlib1.rc
...
...
zlib.3
浏览文件 @
1b57de3a
.TH ZLIB 3 "
xx Sep
2011"
.TH ZLIB 3 "
27 Nov
2011"
.SH NAME
zlib \- compression/decompression library
.SH SYNOPSIS
...
...
@@ -36,9 +36,9 @@ All functions of the compression library are documented in the file
.IR zlib.h .
The distribution source includes examples of use of the library
in the files
.I example.c
.I
test/
example.c
and
.IR minigzip.c,
.IR
test/
minigzip.c,
as well as other examples in the
.IR examples/
directory.
...
...
zlib.3.pdf
浏览文件 @
1b57de3a
无法预览此类型文件
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录