Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Zlib
提交
7a33a861
T
Third Party Zlib
项目概览
OpenHarmony
/
Third Party Zlib
接近 2 年 前同步成功
通知
18
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看板
提交
7a33a861
编写于
9月 09, 2011
作者:
M
Mark Adler
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
zlib 1.2.1
上级
a2506218
变更
23
隐藏空白更改
内联
并排
Showing
23 changed file
with
72 addition
and
65 deletion
+72
-65
ChangeLog
ChangeLog
+9
-1
Makefile
Makefile
+1
-1
Makefile.in
Makefile.in
+1
-1
README
README
+2
-2
adler32.c
adler32.c
+17
-17
as400/bndsrc
as400/bndsrc
+1
-1
as400/compile.clp
as400/compile.clp
+1
-1
as400/readme.txt
as400/readme.txt
+1
-1
as400/zlib.inc
as400/zlib.inc
+3
-3
configure
configure
+1
-1
contrib/ada/zlib-thin.ads
contrib/ada/zlib-thin.ads
+8
-14
contrib/delphi/readme.txt
contrib/delphi/readme.txt
+1
-1
contrib/gzappend/gzappend.c
contrib/gzappend/gzappend.c
+1
-1
contrib/infback9/inftree9.c
contrib/infback9/inftree9.c
+2
-2
contrib/pascal/zlibpas.pas
contrib/pascal/zlibpas.pas
+1
-0
deflate.c
deflate.c
+1
-1
inftrees.c
inftrees.c
+2
-2
old/README
old/README
+1
-1
qnx/package.qpg
qnx/package.qpg
+5
-5
win32/zlib1.rc
win32/zlib1.rc
+4
-4
zlib.3
zlib.3
+2
-2
zlib.h
zlib.h
+3
-3
zutil.h
zutil.h
+4
-0
未找到文件。
ChangeLog
浏览文件 @
7a33a861
ChangeLog file for zlib
Changes in 1.2.1 (17 November 2003)
- Remove a tab in contrib/gzappend/gzappend.c
- Update some interfaces in contrib for new zlib functions
- Update zlib version number in some contrib entries
- Add Windows CE definition for ptrdiff_t in zutil.h [Mai, Truta]
- Support shared libraries on Hurd and KFreeBSD [Brown]
- Fix error in NO_DIVIDE option of adler32.c
Changes in 1.2.0.8 (4 November 2003)
- Update version in contrib/delphi/ZLib.pas and contrib/pascal/zlibpas.pas
- Add experimental NO_DIVIDE #define in adler32.c
...
...
@@ -18,7 +26,7 @@ Changes in 1.2.0.8 (4 November 2003)
- Add -p to mkdir's in Makefile.in [vda]
- Fix configure to properly detect presence or lack of printf functions
- Add AS400 support [Monnerat]
- Add
ed
a little Cygwin support [Wilson]
- Add a little Cygwin support [Wilson]
Changes in 1.2.0.7 (21 September 2003)
- Correct some debug formats in contrib/infback9
...
...
Makefile
浏览文件 @
7a33a861
...
...
@@ -30,7 +30,7 @@ CPP=$(CC) -E
LIBS
=
libz.a
SHAREDLIB
=
libz.so
SHAREDLIBV
=
libz.so.1.2.
0.8
SHAREDLIBV
=
libz.so.1.2.
1
SHAREDLIBM
=
libz.so.1
AR
=
ar rc
...
...
Makefile.in
浏览文件 @
7a33a861
...
...
@@ -30,7 +30,7 @@ CPP=$(CC) -E
LIBS
=
libz.a
SHAREDLIB
=
libz.so
SHAREDLIBV
=
libz.so.1.2.
0.8
SHAREDLIBV
=
libz.so.1.2.
1
SHAREDLIBM
=
libz.so.1
AR
=
ar rc
...
...
README
浏览文件 @
7a33a861
ZLIB DATA COMPRESSION LIBRARY
zlib 1.2.
0.8
is a general purpose data compression library. All the code is
zlib 1.2.
1
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)
...
...
@@ -34,7 +34,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 in
http://dogma.net/markn/articles/zlibtool/zlibtool.htm
The changes made in version 1.2.
0.8
are documented in the file ChangeLog.
The changes made in version 1.2.
1
are documented in the file ChangeLog.
Unsupported third party contributions are provided in directory "contrib".
...
...
adler32.c
浏览文件 @
7a33a861
...
...
@@ -21,23 +21,23 @@
#ifdef NO_DIVIDE
# define MOD(a) \
do { \
if (a > (BASE << 16)) a -= (BASE << 16); \
if (a > (BASE << 15)) a -= (BASE << 15); \
if (a > (BASE << 14)) a -= (BASE << 14); \
if (a > (BASE << 13)) a -= (BASE << 13); \
if (a > (BASE << 12)) a -= (BASE << 12); \
if (a > (BASE << 11)) a -= (BASE << 11); \
if (a > (BASE << 10)) a -= (BASE << 10); \
if (a > (BASE << 9)) a -= (BASE << 9); \
if (a > (BASE << 8)) a -= (BASE << 8); \
if (a > (BASE << 7)) a -= (BASE << 7); \
if (a > (BASE << 6)) a -= (BASE << 6); \
if (a > (BASE << 5)) a -= (BASE << 5); \
if (a > (BASE << 4)) a -= (BASE << 4); \
if (a > (BASE << 3)) a -= (BASE << 3); \
if (a > (BASE << 2)) a -= (BASE << 2); \
if (a > (BASE << 1)) a -= (BASE << 1); \
if (a > BASE) a -= BASE; \
if (a >
=
(BASE << 16)) a -= (BASE << 16); \
if (a >
=
(BASE << 15)) a -= (BASE << 15); \
if (a >
=
(BASE << 14)) a -= (BASE << 14); \
if (a >
=
(BASE << 13)) a -= (BASE << 13); \
if (a >
=
(BASE << 12)) a -= (BASE << 12); \
if (a >
=
(BASE << 11)) a -= (BASE << 11); \
if (a >
=
(BASE << 10)) a -= (BASE << 10); \
if (a >
=
(BASE << 9)) a -= (BASE << 9); \
if (a >
=
(BASE << 8)) a -= (BASE << 8); \
if (a >
=
(BASE << 7)) a -= (BASE << 7); \
if (a >
=
(BASE << 6)) a -= (BASE << 6); \
if (a >
=
(BASE << 5)) a -= (BASE << 5); \
if (a >
=
(BASE << 4)) a -= (BASE << 4); \
if (a >
=
(BASE << 3)) a -= (BASE << 3); \
if (a >
=
(BASE << 2)) a -= (BASE << 2); \
if (a >
=
(BASE << 1)) a -= (BASE << 1); \
if (a >
=
BASE) a -= BASE; \
} while (0)
#else
# define MOD(a) a %= BASE
...
...
as400/bndsrc
浏览文件 @
7a33a861
...
...
@@ -87,7 +87,7 @@ STRPGMEXP PGMLVL(*CURRENT) SIGNATURE('ZLIB')
EXPORT SYMBOL("zError")
/*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@*/
/* Version 1.2.
0.7 additional entry points.
*/
/* Version 1.2.
1 additional entry points.
*/
/*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@*/
/********************************************************************/
...
...
as400/compile.clp
浏览文件 @
7a33a861
...
...
@@ -118,6 +118,6 @@
&MODLIB/INFTREES &MODLIB/TREES +
&MODLIB/UNCOMPR &MODLIB/ZUTIL) +
SRCFILE(&SRCLIB/&CTLFILE) SRCMBR(BNDSRC) +
TEXT('ZLIB 1.2.
0.7
') TGTRLS(V4R4M0)
TEXT('ZLIB 1.2.
1
') TGTRLS(V4R4M0)
ENDPGM
as400/readme.txt
浏览文件 @
7a33a861
ZLIB version 1.2.
0.7
for AS400 installation instructions
ZLIB version 1.2.
1
for AS400 installation instructions
I) From an AS400 *SAVF file:
...
...
as400/zlib.inc
浏览文件 @
7a33a861
*
ZLIB
.
INC
-
Interface
to
the
general
purpose
compression
library
*
*
ILE
RPG400
version
by
Patrick
Monnerat
,
DATASPHERE
.
*
Version
1.2.
0.7
*
Version
1.2.
1
*
*
*
WARNING
:
...
...
@@ -20,8 +20,8 @@
*
Constants
**************************************************************************
*
D
ZLIB_VERSION
C
'1.2.
0.8
'
Header
's version
D ZLIB_VERNUM C X'
12
08
'
D
ZLIB_VERSION
C
'1.2.
1
'
Header
's version
D ZLIB_VERNUM C X'
12
10
'
*
D Z_NO_FLUSH C 0
D Z_SYNC_FLUSH C 2
...
...
configure
浏览文件 @
7a33a861
...
...
@@ -76,7 +76,7 @@ if test "$gcc" -eq 1 && ($cc -c $cflags $test.c) 2>/dev/null; then
SFLAGS
=
${
CFLAGS
-
"-fPIC -O3"
}
CFLAGS
=
"
$cflags
"
case
`
(
uname
-s
||
echo
unknown
)
2>/dev/null
`
in
Linux
|
linux
)
LDSHARED
=
${
LDSHARED
-
"
$cc
-shared -Wl,-soname,libz.so.1"
}
;;
Linux
|
linux
|
GNU
|
GNU/
*
)
LDSHARED
=
${
LDSHARED
-
"
$cc
-shared -Wl,-soname,libz.so.1"
}
;;
CYGWIN
*
|
Cygwin
*
|
cygwin
*
)
EXE
=
'.exe'
;;
QNX
*
)
# This is for QNX6. I suppose that the QNX rule below is for QNX2,QNX4
...
...
contrib/ada/zlib-thin.ads
浏览文件 @
7a33a861
...
...
@@ -146,17 +146,6 @@ private package ZLib.Thin is
strategy
:
Int
)
return
Int
;
-- zlib.h:506
function
deflateBound
(
strm
:
Z_Streamp
;
sourceLen
:
ULong
)
return
Int
;
-- zlib.h:595
function
deflatePrime
(
strm
:
Z_Streamp
;
bits
:
Int
;
value
:
Int
)
return
Int
;
-- zlib.h:604
function
inflateSetDictionary
(
strm
:
Z_Streamp
;
dictionary
:
Byte_Access
;
...
...
@@ -399,6 +388,12 @@ private package ZLib.Thin is
function
zlibCompileFlags
return
ULong
;
function
deflatePrime
(
strm
:
Z_Streamp
;
bits
:
Int
;
value
:
Int
)
return
Int
;
private
type
Z_Stream
is
record
-- zlib.h:68
...
...
@@ -432,8 +427,6 @@ private
pragma
Import
(
C
,
deflateCopy
,
"deflateCopy"
);
pragma
Import
(
C
,
deflateReset
,
"deflateReset"
);
pragma
Import
(
C
,
deflateParams
,
"deflateParams"
);
pragma
Import
(
C
,
deflateBound
,
"deflateBound"
);
pragma
Import
(
C
,
deflatePrime
,
"deflatePrime"
);
pragma
Import
(
C
,
inflateSetDictionary
,
"inflateSetDictionary"
);
pragma
Import
(
C
,
inflateSync
,
"inflateSync"
);
pragma
Import
(
C
,
inflateReset
,
"inflateReset"
);
...
...
@@ -467,13 +460,14 @@ private
pragma
Import
(
C
,
inflateSyncPoint
,
"inflateSyncPoint"
);
pragma
Import
(
C
,
get_crc_table
,
"get_crc_table"
);
--
since zlib 1.2.0
:
--
added in zlib 1.2.1
:
pragma
Import
(
C
,
inflateCopy
,
"inflateCopy"
);
pragma
Import
(
C
,
compressBound
,
"compressBound"
);
pragma
Import
(
C
,
deflateBound
,
"deflateBound"
);
pragma
Import
(
C
,
gzungetc
,
"gzungetc"
);
pragma
Import
(
C
,
zlibCompileFlags
,
"zlibCompileFlags"
);
pragma
Import
(
C
,
deflatePrime
,
"deflatePrime"
);
pragma
Import
(
C
,
inflateBackInit
,
"inflateBackInit_"
);
...
...
contrib/delphi/readme.txt
浏览文件 @
7a33a861
...
...
@@ -14,7 +14,7 @@ we recommend the users to update their ZLib unit.
Summary of modifications
========================
- Improved makefile, adapted to zlib version 1.2.
0
.
- Improved makefile, adapted to zlib version 1.2.
1
.
- Some field types from TZStreamRec are changed from Integer to
Longint, for consistency with the zlib.h header, and for 64-bit
...
...
contrib/gzappend/gzappend.c
浏览文件 @
7a33a861
...
...
@@ -167,7 +167,7 @@ local void rotate(unsigned char *list, unsigned len, unsigned rot)
/* structure for gzip file read operations */
typedef
struct
{
int
fd
;
/* file descriptor */
int
size
;
/* 1 << size is bytes in buf */
int
size
;
/* 1 << size is bytes in buf */
unsigned
left
;
/* bytes available at next */
unsigned
char
*
buf
;
/* buffer */
unsigned
char
*
next
;
/* next byte in buffer */
...
...
contrib/infback9/inftree9.c
浏览文件 @
7a33a861
...
...
@@ -9,7 +9,7 @@
#define MAXBITS 15
const
char
inflate9_copyright
[]
=
" inflate9 1.2.
0.8
Copyright 1995-2003 Mark Adler "
;
" inflate9 1.2.
1
Copyright 1995-2003 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
,
76
,
203
};
133
,
133
,
133
,
133
,
144
,
76
,
66
};
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
,
...
...
contrib/pascal/zlibpas.pas
浏览文件 @
7a33a861
...
...
@@ -166,6 +166,7 @@ function deflateEnd; external;
function
deflateInit_
;
external
;
function
deflateInit2_
;
external
;
function
deflateParams
;
external
;
function
deflatePrime
;
external
;
function
deflateReset
;
external
;
function
deflateSetDictionary
;
external
;
function
inflate
;
external
;
...
...
deflate.c
浏览文件 @
7a33a861
...
...
@@ -52,7 +52,7 @@
#include "deflate.h"
const
char
deflate_copyright
[]
=
" deflate 1.2.
0.8
Copyright 1995-2003 Jean-loup Gailly "
;
" deflate 1.2.
1
Copyright 1995-2003 Jean-loup Gailly "
;
/*
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
...
...
inftrees.c
浏览文件 @
7a33a861
...
...
@@ -9,7 +9,7 @@
#define MAXBITS 15
const
char
inflate_copyright
[]
=
" inflate 1.2.
0.8
Copyright 1995-2003 Mark Adler "
;
" inflate 1.2.
1
Copyright 1995-2003 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
...
...
@@ -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
,
76
,
203
};
19
,
19
,
19
,
19
,
20
,
20
,
20
,
20
,
21
,
21
,
21
,
21
,
16
,
76
,
66
};
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
,
...
...
old/README
浏览文件 @
7a33a861
This directory contains files that have not been updated for zlib 1.2.
This directory contains files that have not been updated for zlib 1.2.
1
(Volunteers are encouraged to help clean this up. Thanks.)
qnx/package.qpg
浏览文件 @
7a33a861
...
...
@@ -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.
0.8
" 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.
0.8
"/>
<QPG:Add file="libz.so.1" install="/opt/lib/" filetype="symlink" linkto="libz.so.1.2.
0.8
"/>
<QPG:Add file="../libz.so.1.2.
0.8
" install="/opt/lib/" component="slib"/>
<QPG:Add file="../libz.so.1.2.
1
" 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.
1
"/>
<QPG:Add file="libz.so.1" install="/opt/lib/" filetype="symlink" linkto="libz.so.1.2.
1
"/>
<QPG:Add file="../libz.so.1.2.
1
" install="/opt/lib/" component="slib"/>
</QPG:Files>
<QPG:PackageFilter>
...
...
@@ -63,7 +63,7 @@
</QPM:ProductDescription>
<QPM:ReleaseDescription>
<QPM:ReleaseVersion>1.2.
0.8
</QPM:ReleaseVersion>
<QPM:ReleaseVersion>1.2.
1
</QPM:ReleaseVersion>
<QPM:ReleaseUrgency>Medium</QPM:ReleaseUrgency>
<QPM:ReleaseStability>Stable</QPM:ReleaseStability>
<QPM:ReleaseNoteMinor></QPM:ReleaseNoteMinor>
...
...
win32/zlib1.rc
浏览文件 @
7a33a861
...
...
@@ -5,8 +5,8 @@ VS_VERSION_INFO VERSIONINFO
#else
VS_VERSION_INFO VERSIONINFO MOVEABLE IMPURE LOADONCALL DISCARDABLE
#endif
FILEVERSION 1,2,
0,8
PRODUCTVERSION 1,2,
0,8
FILEVERSION 1,2,
1,0
PRODUCTVERSION 1,2,
1,0
FILEFLAGSMASK VS_FFI_FILEFLAGSMASK
#ifdef _DEBUG
FILEFLAGS 1
...
...
@@ -23,12 +23,12 @@ BEGIN
//language ID = U.S. English, char set = Windows, Multilingual
BEGIN
VALUE "FileDescription", "zlib data compression library\0"
VALUE "FileVersion", "1.2.
0.8
\0"
VALUE "FileVersion", "1.2.
1
\0"
VALUE "InternalName", "zlib1.dll\0"
VALUE "LegalCopyright", "(C) 1995-2003 Jean-loup Gailly & Mark Adler\0"
VALUE "OriginalFilename", "zlib1.dll\0"
VALUE "ProductName", "zlib\0"
VALUE "ProductVersion", "1.2.
0.8
\0"
VALUE "ProductVersion", "1.2.
1
\0"
VALUE "Comments","DLL support by Alessandro Iacopetti & Gilles Vollant\0"
END
END
...
...
zlib.3
浏览文件 @
7a33a861
.TH ZLIB 3 "
4
November 2003"
.TH ZLIB 3 "
17
November 2003"
.SH NAME
zlib \- compression/decompression library
.SH SYNOPSIS
...
...
@@ -133,7 +133,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.
0.8
Version 1.2.
1
Copyright (C) 1995-2003 Jean-loup Gailly (jloup@gzip.org)
and Mark Adler (madler@alumni.caltech.edu).
.LP
...
...
zlib.h
浏览文件 @
7a33a861
/* zlib.h -- interface of the 'zlib' general purpose compression library
version 1.2.
0.8, November 4
th, 2003
version 1.2.
1, November 17
th, 2003
Copyright (C) 1995-2003 Jean-loup Gailly and Mark Adler
...
...
@@ -37,8 +37,8 @@
extern
"C"
{
#endif
#define ZLIB_VERSION "1.2.
0.8
"
#define ZLIB_VERNUM 0x12
08
#define ZLIB_VERSION "1.2.
1
"
#define ZLIB_VERNUM 0x12
10
/*
The 'zlib' compression library provides in-memory compression and
...
...
zutil.h
浏览文件 @
7a33a861
...
...
@@ -139,6 +139,10 @@ extern const char * const z_errmsg[10]; /* indexed by 2-zlib_error */
#if (defined(_MSC_VER) && (_MSC_VER > 600))
# if defined(_WIN32_WCE)
# define fdopen(fd,mode) NULL
/* No fdopen() */
# ifndef _PTRDIFF_T_DEFINED
typedef
int
ptrdiff_t
;
# define _PTRDIFF_T_DEFINED
# endif
# else
# define fdopen(fd,type) _fdopen(fd,type)
# endif
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录