Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Zlib
提交
9712272c
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看板
提交
9712272c
编写于
9月 09, 2011
作者:
M
Mark Adler
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
zlib 1.2.5
上级
73014202
变更
25
隐藏空白更改
内联
并排
Showing
25 changed file
with
55 addition
and
42 deletion
+55
-42
ChangeLog
ChangeLog
+7
-0
Makefile.in
Makefile.in
+1
-1
README
README
+2
-2
configure
configure
+5
-1
contrib/delphi/ZLib.pas
contrib/delphi/ZLib.pas
+1
-1
contrib/dotzlib/DotZLib/UnitTests.cs
contrib/dotzlib/DotZLib/UnitTests.cs
+1
-1
contrib/infback9/inftree9.c
contrib/infback9/inftree9.c
+2
-2
contrib/pascal/zlibpas.pas
contrib/pascal/zlibpas.pas
+1
-1
contrib/vstudio/vc10/zlib.rc
contrib/vstudio/vc10/zlib.rc
+3
-3
contrib/vstudio/vc9/zlib.rc
contrib/vstudio/vc9/zlib.rc
+3
-3
crc32.c
crc32.c
+1
-1
deflate.c
deflate.c
+1
-1
deflate.h
deflate.h
+1
-1
inffast.c
inffast.c
+1
-1
inffast.h
inffast.h
+1
-1
inftrees.c
inftrees.c
+2
-2
inftrees.h
inftrees.h
+1
-1
qnx/package.qpg
qnx/package.qpg
+5
-5
treebuild.xml
treebuild.xml
+2
-2
trees.c
trees.c
+4
-3
win32/Makefile.gcc
win32/Makefile.gcc
+2
-1
zlib.3
zlib.3
+2
-2
zlib.3.pdf
zlib.3.pdf
+0
-0
zlib.h
zlib.h
+5
-5
zutil.c
zutil.c
+1
-1
未找到文件。
ChangeLog
浏览文件 @
9712272c
ChangeLog file for zlib
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)
Changes in 1.2.4.5 (18 Apr 2010)
- Set sharedlibdir in configure [Torok]
- Set sharedlibdir in configure [Torok]
- Set LDFLAGS in Makefile.in [Bar-Lev]
- Set LDFLAGS in Makefile.in [Bar-Lev]
...
...
Makefile.in
浏览文件 @
9712272c
...
@@ -32,7 +32,7 @@ CPP=$(CC) -E
...
@@ -32,7 +32,7 @@ CPP=$(CC) -E
STATICLIB
=
libz.a
STATICLIB
=
libz.a
SHAREDLIB
=
libz.so
SHAREDLIB
=
libz.so
SHAREDLIBV
=
libz.so.1.2.
4.
5
SHAREDLIBV
=
libz.so.1.2.5
SHAREDLIBM
=
libz.so.1
SHAREDLIBM
=
libz.so.1
LIBS
=
$(STATICLIB)
$(SHAREDLIBV)
LIBS
=
$(STATICLIB)
$(SHAREDLIBV)
...
...
README
浏览文件 @
9712272c
ZLIB DATA COMPRESSION LIBRARY
ZLIB DATA COMPRESSION LIBRARY
zlib 1.2.
4.
5 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
thread safe. The data format used by the zlib library is described by RFCs
(Request for Comments) 1950 to 1952 in the files
(Request for Comments) 1950 to 1952 in the files
http://www.ietf.org/rfc/rfc1950.txt (zlib format), rfc1951.txt (deflate format)
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
...
@@ -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
issue of Dr. Dobb's Journal; a copy of the article is available at
http://marknelson.us/1997/01/01/zlib-engine/ .
http://marknelson.us/1997/01/01/zlib-engine/ .
The changes made in version 1.2.
4.
5 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/ .
Unsupported third party contributions are provided in directory contrib/ .
...
...
configure
浏览文件 @
9712272c
...
@@ -49,7 +49,7 @@ LDSHAREDLIBC="${LDSHAREDLIBC--lc}"
...
@@ -49,7 +49,7 @@ LDSHAREDLIBC="${LDSHAREDLIBC--lc}"
prefix
=
${
prefix
-/usr/local
}
prefix
=
${
prefix
-/usr/local
}
exec_prefix
=
${
exec_prefix
-
'${prefix}'
}
exec_prefix
=
${
exec_prefix
-
'${prefix}'
}
libdir
=
${
libdir
-
'${exec_prefix}/lib'
}
libdir
=
${
libdir
-
'${exec_prefix}/lib'
}
sharedlibdir
=
${
sharedlibdir
-
'${
exec_prefix}/lib
'
}
sharedlibdir
=
${
sharedlibdir
-
'${
libdir}
'
}
includedir
=
${
includedir
-
'${prefix}/include'
}
includedir
=
${
includedir
-
'${prefix}/include'
}
mandir
=
${
mandir
-
'${prefix}/share/man'
}
mandir
=
${
mandir
-
'${prefix}/share/man'
}
shared_ext
=
'.so'
shared_ext
=
'.so'
...
@@ -122,6 +122,10 @@ if test "$gcc" -eq 1 && ($cc -c $cflags $test.c) 2>/dev/null; then
...
@@ -122,6 +122,10 @@ if test "$gcc" -eq 1 && ($cc -c $cflags $test.c) 2>/dev/null; then
CYGWIN
*
|
Cygwin
*
|
cygwin
*
|
OS/2
*
)
CYGWIN
*
|
Cygwin
*
|
cygwin
*
|
OS/2
*
)
EXE
=
'.exe'
;;
EXE
=
'.exe'
;;
MINGW
*
|
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"
}
LDSHARED
=
${
LDSHARED
-
"
$cc
-shared"
}
LDSHAREDLIBC
=
""
LDSHAREDLIBC
=
""
EXE
=
'.exe'
;;
EXE
=
'.exe'
;;
...
...
contrib/delphi/ZLib.pas
浏览文件 @
9712272c
...
@@ -152,7 +152,7 @@ procedure DecompressToUserBuf(const InBuf: Pointer; InBytes: Integer;
...
@@ -152,7 +152,7 @@ procedure DecompressToUserBuf(const InBuf: Pointer; InBytes: Integer;
const
OutBuf
:
Pointer
;
BufSize
:
Integer
);
const
OutBuf
:
Pointer
;
BufSize
:
Integer
);
const
const
zlib_version
=
'1.2.
4.
5'
;
zlib_version
=
'1.2.5'
;
type
type
EZlibError
=
class
(
Exception
);
EZlibError
=
class
(
Exception
);
...
...
contrib/dotzlib/DotZLib/UnitTests.cs
浏览文件 @
9712272c
...
@@ -156,7 +156,7 @@ namespace DotZLibTests
...
@@ -156,7 +156,7 @@ namespace DotZLibTests
public
void
Info_Version
()
public
void
Info_Version
()
{
{
Info
info
=
new
Info
();
Info
info
=
new
Info
();
Assert
.
AreEqual
(
"1.2.
4.
5"
,
Info
.
Version
);
Assert
.
AreEqual
(
"1.2.5"
,
Info
.
Version
);
Assert
.
AreEqual
(
32
,
info
.
SizeOfUInt
);
Assert
.
AreEqual
(
32
,
info
.
SizeOfUInt
);
Assert
.
AreEqual
(
32
,
info
.
SizeOfULong
);
Assert
.
AreEqual
(
32
,
info
.
SizeOfULong
);
Assert
.
AreEqual
(
32
,
info
.
SizeOfPointer
);
Assert
.
AreEqual
(
32
,
info
.
SizeOfPointer
);
...
...
contrib/infback9/inftree9.c
浏览文件 @
9712272c
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
#define MAXBITS 15
#define MAXBITS 15
const
char
inflate9_copyright
[]
=
const
char
inflate9_copyright
[]
=
" inflate9 1.2.
4.
5 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
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
in the documentation of your product. If for some reason you cannot
...
@@ -64,7 +64,7 @@ unsigned short FAR *work;
...
@@ -64,7 +64,7 @@ unsigned short FAR *work;
static
const
unsigned
short
lext
[
31
]
=
{
/* Length codes 257..285 extra */
static
const
unsigned
short
lext
[
31
]
=
{
/* Length codes 257..285 extra */
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
129
,
129
,
129
,
129
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
129
,
129
,
129
,
129
,
130
,
130
,
130
,
130
,
131
,
131
,
131
,
131
,
132
,
132
,
132
,
132
,
130
,
130
,
130
,
130
,
131
,
131
,
131
,
131
,
132
,
132
,
132
,
132
,
133
,
133
,
133
,
133
,
144
,
7
5
,
7
5
};
133
,
133
,
133
,
133
,
144
,
7
3
,
19
5
};
static
const
unsigned
short
dbase
[
32
]
=
{
/* Distance codes 0..31 base */
static
const
unsigned
short
dbase
[
32
]
=
{
/* Distance codes 0..31 base */
1
,
2
,
3
,
4
,
5
,
7
,
9
,
13
,
17
,
25
,
33
,
49
,
1
,
2
,
3
,
4
,
5
,
7
,
9
,
13
,
17
,
25
,
33
,
49
,
65
,
97
,
129
,
193
,
257
,
385
,
513
,
769
,
1025
,
1537
,
2049
,
3073
,
65
,
97
,
129
,
193
,
257
,
385
,
513
,
769
,
1025
,
1537
,
2049
,
3073
,
...
...
contrib/pascal/zlibpas.pas
浏览文件 @
9712272c
...
@@ -10,7 +10,7 @@ unit zlibpas;
...
@@ -10,7 +10,7 @@ unit zlibpas;
interface
interface
const
const
ZLIB_VERSION
=
'1.2.
4.
5'
;
ZLIB_VERSION
=
'1.2.5'
;
type
type
alloc_func
=
function
(
opaque
:
Pointer
;
items
,
size
:
Integer
):
Pointer
;
alloc_func
=
function
(
opaque
:
Pointer
;
items
,
size
:
Integer
):
Pointer
;
...
...
contrib/vstudio/vc10/zlib.rc
浏览文件 @
9712272c
...
@@ -2,8 +2,8 @@
...
@@ -2,8 +2,8 @@
#define IDR_VERSION1 1
#define IDR_VERSION1 1
IDR_VERSION1 VERSIONINFO MOVEABLE IMPURE LOADONCALL DISCARDABLE
IDR_VERSION1 VERSIONINFO MOVEABLE IMPURE LOADONCALL DISCARDABLE
FILEVERSION 1,2,
4,5
FILEVERSION 1,2,
5,0
PRODUCTVERSION 1,2,
4,5
PRODUCTVERSION 1,2,
5,0
FILEFLAGSMASK VS_FFI_FILEFLAGSMASK
FILEFLAGSMASK VS_FFI_FILEFLAGSMASK
FILEFLAGS 0
FILEFLAGS 0
FILEOS VOS_DOS_WINDOWS32
FILEOS VOS_DOS_WINDOWS32
...
@@ -17,7 +17,7 @@ BEGIN
...
@@ -17,7 +17,7 @@ BEGIN
BEGIN
BEGIN
VALUE "FileDescription", "zlib data compression and ZIP file I/O library\0"
VALUE "FileDescription", "zlib data compression and ZIP file I/O library\0"
VALUE "FileVersion", "1.2.
4.
5\0"
VALUE "FileVersion", "1.2.5\0"
VALUE "InternalName", "zlib\0"
VALUE "InternalName", "zlib\0"
VALUE "OriginalFilename", "zlib.dll\0"
VALUE "OriginalFilename", "zlib.dll\0"
VALUE "ProductName", "ZLib.DLL\0"
VALUE "ProductName", "ZLib.DLL\0"
...
...
contrib/vstudio/vc9/zlib.rc
浏览文件 @
9712272c
...
@@ -2,8 +2,8 @@
...
@@ -2,8 +2,8 @@
#define IDR_VERSION1 1
#define IDR_VERSION1 1
IDR_VERSION1 VERSIONINFO MOVEABLE IMPURE LOADONCALL DISCARDABLE
IDR_VERSION1 VERSIONINFO MOVEABLE IMPURE LOADONCALL DISCARDABLE
FILEVERSION 1,2,
4,5
FILEVERSION 1,2,
5,0
PRODUCTVERSION 1,2,
4,5
PRODUCTVERSION 1,2,
5,0
FILEFLAGSMASK VS_FFI_FILEFLAGSMASK
FILEFLAGSMASK VS_FFI_FILEFLAGSMASK
FILEFLAGS 0
FILEFLAGS 0
FILEOS VOS_DOS_WINDOWS32
FILEOS VOS_DOS_WINDOWS32
...
@@ -17,7 +17,7 @@ BEGIN
...
@@ -17,7 +17,7 @@ BEGIN
BEGIN
BEGIN
VALUE "FileDescription", "zlib data compression and ZIP file I/O library\0"
VALUE "FileDescription", "zlib data compression and ZIP file I/O library\0"
VALUE "FileVersion", "1.2.
4.
5\0"
VALUE "FileVersion", "1.2.5\0"
VALUE "InternalName", "zlib\0"
VALUE "InternalName", "zlib\0"
VALUE "OriginalFilename", "zlib.dll\0"
VALUE "OriginalFilename", "zlib.dll\0"
VALUE "ProductName", "ZLib.DLL\0"
VALUE "ProductName", "ZLib.DLL\0"
...
...
crc32.c
浏览文件 @
9712272c
/* crc32.c -- compute the CRC-32 of a data stream
/* 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
* 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
* Thanks to Rodney Brown <rbrown64@csc.com.au> for his contribution of faster
...
...
deflate.c
浏览文件 @
9712272c
...
@@ -52,7 +52,7 @@
...
@@ -52,7 +52,7 @@
#include "deflate.h"
#include "deflate.h"
const
char
deflate_copyright
[]
=
const
char
deflate_copyright
[]
=
" deflate 1.2.
4.
5 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
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
in the documentation of your product. If for some reason you cannot
...
...
deflate.h
浏览文件 @
9712272c
/* deflate.h -- internal compression state
/* deflate.h -- internal compression state
* Copyright (C) 1995-20
09
Jean-loup Gailly
* Copyright (C) 1995-20
10
Jean-loup Gailly
* For conditions of distribution and use, see copyright notice in zlib.h
* For conditions of distribution and use, see copyright notice in zlib.h
*/
*/
...
...
inffast.c
浏览文件 @
9712272c
/* inffast.c -- fast decoding
/* 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
* For conditions of distribution and use, see copyright notice in zlib.h
*/
*/
...
...
inffast.h
浏览文件 @
9712272c
/* inffast.h -- header to use inffast.c
/* 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
* For conditions of distribution and use, see copyright notice in zlib.h
*/
*/
...
...
inftrees.c
浏览文件 @
9712272c
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
#define MAXBITS 15
#define MAXBITS 15
const
char
inflate_copyright
[]
=
const
char
inflate_copyright
[]
=
" inflate 1.2.
4.
5 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
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
in the documentation of your product. If for some reason you cannot
...
@@ -62,7 +62,7 @@ unsigned short FAR *work;
...
@@ -62,7 +62,7 @@ unsigned short FAR *work;
35
,
43
,
51
,
59
,
67
,
83
,
99
,
115
,
131
,
163
,
195
,
227
,
258
,
0
,
0
};
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 */
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
,
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
,
7
5
,
7
5
};
19
,
19
,
19
,
19
,
20
,
20
,
20
,
20
,
21
,
21
,
21
,
21
,
16
,
7
3
,
19
5
};
static
const
unsigned
short
dbase
[
32
]
=
{
/* Distance codes 0..29 base */
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
,
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
,
257
,
385
,
513
,
769
,
1025
,
1537
,
2049
,
3073
,
4097
,
6145
,
...
...
inftrees.h
浏览文件 @
9712272c
/* inftrees.h -- header to use inftrees.c
/* 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
* For conditions of distribution and use, see copyright notice in zlib.h
*/
*/
...
...
qnx/package.qpg
浏览文件 @
9712272c
...
@@ -25,10 +25,10 @@
...
@@ -25,10 +25,10 @@
<QPG:Files>
<QPG:Files>
<QPG:Add file="../zconf.h" install="/opt/include/" user="root:sys" permission="644"/>
<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="../zlib.h" install="/opt/include/" user="root:sys" permission="644"/>
<QPG:Add file="../libz.so.1.2.
4.
5" install="/opt/lib/" user="root:bin" permission="644"/>
<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.
4.
5"/>
<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.
4.
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.
4.
5" install="/opt/lib/" component="slib"/>
<QPG:Add file="../libz.so.1.2.5" install="/opt/lib/" component="slib"/>
</QPG:Files>
</QPG:Files>
<QPG:PackageFilter>
<QPG:PackageFilter>
...
@@ -63,7 +63,7 @@
...
@@ -63,7 +63,7 @@
</QPM:ProductDescription>
</QPM:ProductDescription>
<QPM:ReleaseDescription>
<QPM:ReleaseDescription>
<QPM:ReleaseVersion>1.2.
4.
5</QPM:ReleaseVersion>
<QPM:ReleaseVersion>1.2.5</QPM:ReleaseVersion>
<QPM:ReleaseUrgency>Medium</QPM:ReleaseUrgency>
<QPM:ReleaseUrgency>Medium</QPM:ReleaseUrgency>
<QPM:ReleaseStability>Stable</QPM:ReleaseStability>
<QPM:ReleaseStability>Stable</QPM:ReleaseStability>
<QPM:ReleaseNoteMinor></QPM:ReleaseNoteMinor>
<QPM:ReleaseNoteMinor></QPM:ReleaseNoteMinor>
...
...
treebuild.xml
浏览文件 @
9712272c
<?xml version="1.0" ?>
<?xml version="1.0" ?>
<package
name=
"zlib"
version=
"1.2.
4.
5"
>
<package
name=
"zlib"
version=
"1.2.5"
>
<library
name=
"zlib"
dlversion=
"1.2.
4.
5"
dlname=
"z"
>
<library
name=
"zlib"
dlversion=
"1.2.5"
dlname=
"z"
>
<property
name=
"description"
>
zip compression library
</property>
<property
name=
"description"
>
zip compression library
</property>
<property
name=
"include-target-dir"
value=
"$(@PACKAGE/install-includedir)"
/>
<property
name=
"include-target-dir"
value=
"$(@PACKAGE/install-includedir)"
/>
...
...
trees.c
浏览文件 @
9712272c
/* trees.c -- output deflated data using Huffman coding
/* trees.c -- output deflated data using Huffman coding
* Copyright (C) 1995-20
09
Jean-loup Gailly
* Copyright (C) 1995-20
10
Jean-loup Gailly
* detect_data_type() function provided freely by Cosmin Truta, 2006
* detect_data_type() function provided freely by Cosmin Truta, 2006
* For conditions of distribution and use, see copyright notice in zlib.h
* For conditions of distribution and use, see copyright notice in zlib.h
*/
*/
...
@@ -351,13 +351,14 @@ void gen_trees_header()
...
@@ -351,13 +351,14 @@ void gen_trees_header()
static_dtree
[
i
].
Len
,
SEPARATOR
(
i
,
D_CODES
-
1
,
5
));
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
++
)
{
for
(
i
=
0
;
i
<
DIST_CODE_LEN
;
i
++
)
{
fprintf
(
header
,
"%2u%s"
,
_dist_code
[
i
],
fprintf
(
header
,
"%2u%s"
,
_dist_code
[
i
],
SEPARATOR
(
i
,
DIST_CODE_LEN
-
1
,
20
));
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
++
)
{
for
(
i
=
0
;
i
<
MAX_MATCH
-
MIN_MATCH
+
1
;
i
++
)
{
fprintf
(
header
,
"%2u%s"
,
_length_code
[
i
],
fprintf
(
header
,
"%2u%s"
,
_length_code
[
i
],
SEPARATOR
(
i
,
MAX_MATCH
-
MIN_MATCH
,
20
));
SEPARATOR
(
i
,
MAX_MATCH
-
MIN_MATCH
,
20
));
...
...
win32/Makefile.gcc
浏览文件 @
9712272c
...
@@ -38,6 +38,7 @@ SHARED_MODE=0
...
@@ -38,6 +38,7 @@ SHARED_MODE=0
PREFIX
=
PREFIX
=
CC
=
$(PREFIX)
gcc
CC
=
$(PREFIX)
gcc
CFLAGS
=
$(LOC)
-O3
-Wall
CFLAGS
=
$(LOC)
-O3
-Wall
EXTRA_CFLAGS
=
-DNO_VIZ
AS
=
$(CC)
AS
=
$(CC)
ASFLAGS
=
$(LOC)
-Wall
ASFLAGS
=
$(LOC)
-Wall
...
@@ -76,7 +77,7 @@ testdll: example_d.exe minigzip_d.exe
...
@@ -76,7 +77,7 @@ testdll: example_d.exe minigzip_d.exe
echo
hello world | ./minigzip_d | ./minigzip_d
-d
echo
hello world | ./minigzip_d | ./minigzip_d
-d
.c.o
:
.c.o
:
$(CC)
$(CFLAGS)
-c
-o
$@
$<
$(CC)
$(CFLAGS)
$(EXTRA_CFLAGS)
-c
-o
$@
$<
.S.o
:
.S.o
:
$(AS)
$(ASFLAGS)
-c
-o
$@
$<
$(AS)
$(ASFLAGS)
-c
-o
$@
$<
...
...
zlib.3
浏览文件 @
9712272c
.TH ZLIB 3 "1
8
Apr 2010"
.TH ZLIB 3 "1
9
Apr 2010"
.SH NAME
.SH NAME
zlib \- compression/decompression library
zlib \- compression/decompression library
.SH SYNOPSIS
.SH SYNOPSIS
...
@@ -125,7 +125,7 @@ before asking for help.
...
@@ -125,7 +125,7 @@ before asking for help.
Send questions and/or comments to zlib@gzip.org,
Send questions and/or comments to zlib@gzip.org,
or (for the Windows DLL version) to Gilles Vollant (info@winimage.com).
or (for the Windows DLL version) to Gilles Vollant (info@winimage.com).
.SH AUTHORS
.SH AUTHORS
Version 1.2.
4.
5
Version 1.2.5
Copyright (C) 1995-2010 Jean-loup Gailly (jloup@gzip.org)
Copyright (C) 1995-2010 Jean-loup Gailly (jloup@gzip.org)
and Mark Adler (madler@alumni.caltech.edu).
and Mark Adler (madler@alumni.caltech.edu).
.LP
.LP
...
...
zlib.3.pdf
浏览文件 @
9712272c
无法预览此类型文件
zlib.h
浏览文件 @
9712272c
/* zlib.h -- interface of the 'zlib' general purpose compression library
/* zlib.h -- interface of the 'zlib' general purpose compression library
version 1.2.
4.5, April 18
th, 2010
version 1.2.
5, April 19
th, 2010
Copyright (C) 1995-2010 Jean-loup Gailly and Mark Adler
Copyright (C) 1995-2010 Jean-loup Gailly and Mark Adler
...
@@ -37,12 +37,12 @@
...
@@ -37,12 +37,12 @@
extern
"C"
{
extern
"C"
{
#endif
#endif
#define ZLIB_VERSION "1.2.
4.
5"
#define ZLIB_VERSION "1.2.5"
#define ZLIB_VERNUM 0x12
45
#define ZLIB_VERNUM 0x12
50
#define ZLIB_VER_MAJOR 1
#define ZLIB_VER_MAJOR 1
#define ZLIB_VER_MINOR 2
#define ZLIB_VER_MINOR 2
#define ZLIB_VER_REVISION
4
#define ZLIB_VER_REVISION
5
#define ZLIB_VER_SUBREVISION
5
#define ZLIB_VER_SUBREVISION
0
/*
/*
The 'zlib' compression library provides in-memory compression and
The 'zlib' compression library provides in-memory compression and
...
...
zutil.c
浏览文件 @
9712272c
/* zutil.c -- target dependent utility functions for the compression library
/* 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
* For conditions of distribution and use, see copyright notice in zlib.h
*/
*/
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录