Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
fanzcsoft
Third Party Zlib
提交
8f147c3d
T
Third Party Zlib
项目概览
fanzcsoft
/
Third Party Zlib
与 Fork 源项目一致
Fork自
OpenHarmony / Third Party Zlib
通知
1
Star
0
Fork
0
代码
文件
提交
分支
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看板
体验新版 GitCode,发现更多精彩内容 >>
提交
8f147c3d
编写于
12月 30, 2016
作者:
M
Mark Adler
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Avoid some random compiler warnings on various platforms.
上级
fb26fc42
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
14 addition
and
12 deletion
+14
-12
deflate.c
deflate.c
+4
-3
gzwrite.c
gzwrite.c
+1
-1
inftrees.c
inftrees.c
+2
-2
test/example.c
test/example.c
+4
-3
test/minigzip.c
test/minigzip.c
+2
-2
trees.c
trees.c
+1
-1
未找到文件。
deflate.c
浏览文件 @
8f147c3d
...
...
@@ -447,11 +447,12 @@ int ZEXPORT deflateGetDictionary (strm, dictionary, dictLength)
uInt
*
dictLength
;
{
deflate_state
*
s
;
uInt
len
;
if
(
deflateStateCheck
(
strm
))
return
Z_STREAM_ERROR
;
s
=
strm
->
state
;
uInt
len
=
s
->
strstart
+
s
->
lookahead
;
len
=
s
->
strstart
+
s
->
lookahead
;
if
(
len
>
s
->
w_size
)
len
=
s
->
w_size
;
if
(
dictionary
!=
Z_NULL
&&
len
)
...
...
@@ -1758,12 +1759,12 @@ local block_state deflate_stored(s, flush)
* code following this won't be able to either.
*/
if
(
flush
!=
Z_NO_FLUSH
&&
s
->
strm
->
avail_in
==
0
&&
s
->
strstart
==
s
->
block_start
)
(
long
)
s
->
strstart
==
s
->
block_start
)
return
flush
==
Z_FINISH
?
finish_done
:
block_done
;
/* Fill the window with any remaining input. */
have
=
s
->
window_size
-
s
->
strstart
-
1
;
if
(
s
->
strm
->
avail_in
>
have
&&
s
->
block_start
>=
s
->
w_size
)
{
if
(
s
->
strm
->
avail_in
>
have
&&
s
->
block_start
>=
(
long
)
s
->
w_size
)
{
/* Slide the window down. */
s
->
block_start
-=
s
->
w_size
;
s
->
strstart
-=
s
->
w_size
;
...
...
gzwrite.c
浏览文件 @
8f147c3d
...
...
@@ -225,7 +225,7 @@ local z_size_t gz_write(state, buf, len)
/* directly compress user buffer to file */
state
->
strm
.
next_in
=
(
z_const
Bytef
*
)
buf
;
do
{
unsigned
n
=
-
1
;
unsigned
n
=
(
unsigned
)
-
1
;
if
(
n
>
len
)
n
=
len
;
state
->
strm
.
avail_in
=
n
;
...
...
inftrees.c
浏览文件 @
8f147c3d
...
...
@@ -188,7 +188,7 @@ unsigned short FAR *work;
extra
=
lext
;
match
=
257
;
break
;
case
DISTS
:
default:
/* DISTS */
base
=
dbase
;
extra
=
dext
;
match
=
0
;
...
...
@@ -214,7 +214,7 @@ unsigned short FAR *work;
for
(;;)
{
/* create table entry */
here
.
bits
=
(
unsigned
char
)(
len
-
drop
);
if
(
work
[
sym
]
+
1
<
match
)
{
if
(
work
[
sym
]
+
1
U
<
match
)
{
here
.
op
=
(
unsigned
char
)
0
;
here
.
val
=
work
[
sym
];
}
...
...
test/example.c
浏览文件 @
8f147c3d
...
...
@@ -59,13 +59,13 @@ void *myalloc(q, n, m)
void
*
q
;
unsigned
n
,
m
;
{
q
=
Z_NULL
;
(
void
)
q
;
return
calloc
(
n
,
m
);
}
void
myfree
(
void
*
q
,
void
*
p
)
{
q
=
Z_NULL
;
(
void
)
q
;
free
(
p
);
}
...
...
@@ -573,7 +573,8 @@ int main(argc, argv)
}
#ifdef Z_SOLO
argc
=
strlen
(
argv
[
0
]);
(
void
)
argc
;
(
void
)
argv
;
#else
test_compress
(
compr
,
comprLen
,
uncompr
,
uncomprLen
);
...
...
test/minigzip.c
浏览文件 @
8f147c3d
...
...
@@ -156,14 +156,14 @@ void *myalloc(q, n, m)
void
*
q
;
unsigned
n
,
m
;
{
q
=
Z_NULL
;
(
void
)
q
;
return
calloc
(
n
,
m
);
}
void
myfree
(
q
,
p
)
void
*
q
,
*
p
;
{
q
=
Z_NULL
;
(
void
)
q
;
free
(
p
);
}
...
...
trees.c
浏览文件 @
8f147c3d
...
...
@@ -870,7 +870,7 @@ void ZLIB_INTERNAL _tr_stored_block(s, buf, stored_len, last)
bi_windup
(
s
);
/* align on byte boundary */
put_short
(
s
,
(
ush
)
stored_len
);
put_short
(
s
,
(
ush
)
~
stored_len
);
zmemcpy
(
s
->
pending_buf
+
s
->
pending
,
buf
,
stored_len
);
zmemcpy
(
s
->
pending_buf
+
s
->
pending
,
(
Bytef
*
)
buf
,
stored_len
);
s
->
pending
+=
stored_len
;
#ifdef ZLIB_DEBUG
s
->
compressed_len
=
(
s
->
compressed_len
+
3
+
7
)
&
(
ulg
)
~
7L
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录