Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Zlib
提交
51a223de
T
Third Party Zlib
项目概览
OpenHarmony
/
Third Party Zlib
大约 1 年 前同步成功
通知
15
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看板
体验新版 GitCode,发现更多精彩内容 >>
提交
51a223de
编写于
7月 28, 2015
作者:
M
Mark Adler
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Avoid use of DEBUG macro -- change to ZLIB_DEBUG.
上级
0b223371
变更
14
隐藏空白更改
内联
并排
Showing
14 changed file
with
33 addition
and
33 deletion
+33
-33
Makefile.in
Makefile.in
+1
-1
deflate.c
deflate.c
+3
-3
deflate.h
deflate.h
+2
-2
examples/gzlog.c
examples/gzlog.c
+1
-1
msdos/Makefile.dj2
msdos/Makefile.dj2
+1
-1
msdos/Makefile.emx
msdos/Makefile.emx
+1
-1
old/Makefile.emx
old/Makefile.emx
+1
-1
old/os2/Makefile.os2
old/os2/Makefile.os2
+1
-1
treebuild.xml
treebuild.xml
+1
-1
trees.c
trees.c
+16
-16
win32/Makefile.gcc
win32/Makefile.gcc
+1
-1
zlib.h
zlib.h
+1
-1
zutil.c
zutil.c
+2
-2
zutil.h
zutil.h
+1
-1
未找到文件。
Makefile.in
浏览文件 @
51a223de
...
...
@@ -20,7 +20,7 @@ CC=cc
CFLAGS
=
-O
#CFLAGS=-O -DMAX_WBITS=14 -DMAX_MEM_LEVEL=7
#CFLAGS=-g -DDEBUG
#CFLAGS=-g -D
ZLIB_
DEBUG
#CFLAGS=-O3 -Wall -Wwrite-strings -Wpointer-arith -Wconversion \
# -Wstrict-prototypes -Wmissing-prototypes
...
...
deflate.c
浏览文件 @
51a223de
...
...
@@ -92,7 +92,7 @@ local int read_buf OF((z_streamp strm, Bytef *buf, unsigned size));
local
uInt
longest_match
OF
((
deflate_state
*
s
,
IPos
cur_match
));
#endif
#ifdef DEBUG
#ifdef
ZLIB_
DEBUG
local
void
check_match
OF
((
deflate_state
*
s
,
IPos
start
,
IPos
match
,
int
length
));
#endif
...
...
@@ -1349,7 +1349,7 @@ local uInt longest_match(s, cur_match)
#endif
/* FASTEST */
#ifdef DEBUG
#ifdef
ZLIB_
DEBUG
/* ===========================================================================
* Check that the match at match_start is indeed a match.
*/
...
...
@@ -1375,7 +1375,7 @@ local void check_match(s, start, match, length)
}
#else
# define check_match(s, start, match, length)
#endif
/* DEBUG */
#endif
/*
ZLIB_
DEBUG */
/* ===========================================================================
* Fill the window when the lookahead becomes insufficient.
...
...
deflate.h
浏览文件 @
51a223de
...
...
@@ -249,7 +249,7 @@ typedef struct internal_state {
uInt
matches
;
/* number of string matches in current block */
uInt
insert
;
/* bytes at end of window left to insert */
#ifdef DEBUG
#ifdef
ZLIB_
DEBUG
ulg
compressed_len
;
/* total bit length of compressed file mod 2^32 */
ulg
bits_sent
;
/* bit length of compressed data sent mod 2^32 */
#endif
...
...
@@ -309,7 +309,7 @@ void ZLIB_INTERNAL _tr_stored_block OF((deflate_state *s, charf *buf,
* used.
*/
#ifndef DEBUG
#ifndef
ZLIB_
DEBUG
/* Inline versions of _tr_tally for speed: */
#if defined(GEN_TREES_H) || !defined(STDC)
...
...
examples/gzlog.c
浏览文件 @
51a223de
...
...
@@ -243,7 +243,7 @@ typedef unsigned int uint;
typedef
unsigned
long
ulong
;
/* Macro for debugging to deterministically force recovery operations */
#ifdef DEBUG
#ifdef
GZLOG_
DEBUG
#include <setjmp.h>
/* longjmp */
jmp_buf
gzlog_jump
;
/* where to go back to */
int
gzlog_bail
=
0
;
/* which point to bail at (1..8) */
...
...
msdos/Makefile.dj2
浏览文件 @
51a223de
...
...
@@ -29,7 +29,7 @@ CC=gcc
#CFLAGS=-MMD -O
#CFLAGS=-O -DMAX_WBITS=14 -DMAX_MEM_LEVEL=7
#CFLAGS=-MMD -g -DDEBUG
#CFLAGS=-MMD -g -D
ZLIB_
DEBUG
CFLAGS
=
-MMD
-O3
$(BUTT)
-Wall
-Wwrite-strings
-Wpointer-arith
-Wconversion
\
-Wstrict-prototypes
-Wmissing-prototypes
...
...
msdos/Makefile.emx
浏览文件 @
51a223de
...
...
@@ -11,7 +11,7 @@ CC=gcc
#CFLAGS=-MMD -O
#CFLAGS=-O -DMAX_WBITS=14 -DMAX_MEM_LEVEL=7
#CFLAGS=-MMD -g -DDEBUG
#CFLAGS=-MMD -g -D
ZLIB_
DEBUG
CFLAGS
=
-MMD
-O3
$(BUTT)
-Wall
-Wwrite-strings
-Wpointer-arith
-Wconversion
\
-Wstrict-prototypes
-Wmissing-prototypes
...
...
old/Makefile.emx
浏览文件 @
51a223de
...
...
@@ -11,7 +11,7 @@ CC=gcc -Zwin32
#CFLAGS=-MMD -O
#CFLAGS=-O -DMAX_WBITS=14 -DMAX_MEM_LEVEL=7
#CFLAGS=-MMD -g -DDEBUG
#CFLAGS=-MMD -g -D
ZLIB_
DEBUG
CFLAGS
=
-MMD
-O3
$(BUTT)
-Wall
-Wwrite-strings
-Wpointer-arith
-Wconversion
\
-Wstrict-prototypes
-Wmissing-prototypes
...
...
old/os2/Makefile.os2
浏览文件 @
51a223de
...
...
@@ -14,7 +14,7 @@ CC=gcc -Zomf -s
CFLAGS
=
-O6
-Wall
#CFLAGS=-O -DMAX_WBITS=14 -DMAX_MEM_LEVEL=7
#CFLAGS=-g -DDEBUG
#CFLAGS=-g -D
ZLIB_
DEBUG
#CFLAGS=-O3 -Wall -Wwrite-strings -Wpointer-arith -Wconversion \
# -Wstrict-prototypes -Wmissing-prototypes
...
...
treebuild.xml
浏览文件 @
51a223de
...
...
@@ -101,7 +101,7 @@
<!--
CFLAGS=-O
#CFLAGS=-O -DMAX_WBITS=14 -DMAX_MEM_LEVEL=7
#CFLAGS=-g -DDEBUG
#CFLAGS=-g -D
ZLIB_
DEBUG
#CFLAGS=-O3 -Wall -Wwrite-strings -Wpointer-arith -Wconversion \
# -Wstrict-prototypes -Wmissing-prototypes
...
...
trees.c
浏览文件 @
51a223de
...
...
@@ -36,7 +36,7 @@
#include "deflate.h"
#ifdef DEBUG
#ifdef
ZLIB_
DEBUG
# include <ctype.h>
#endif
...
...
@@ -159,11 +159,11 @@ local void copy_block OF((deflate_state *s, charf *buf, unsigned len,
local
void
gen_trees_header
OF
((
void
));
#endif
#ifndef DEBUG
#ifndef
ZLIB_
DEBUG
# define send_code(s, c, tree) send_bits(s, tree[c].Code, tree[c].Len)
/* Send a code of the given tree. c and tree must not have side effects */
#else
/* DEBUG */
#else
/*
!ZLIB_
DEBUG */
# define send_code(s, c, tree) \
{ if (z_verbose>2) fprintf(stderr,"\ncd %3d ",(c)); \
send_bits(s, tree[c].Code, tree[c].Len); }
...
...
@@ -182,7 +182,7 @@ local void gen_trees_header OF((void));
* Send a value on a given number of bits.
* IN assertion: length <= 16 and value fits in length bits.
*/
#ifdef DEBUG
#ifdef
ZLIB_
DEBUG
local
void
send_bits
OF
((
deflate_state
*
s
,
int
value
,
int
length
));
local
void
send_bits
(
s
,
value
,
length
)
...
...
@@ -208,7 +208,7 @@ local void send_bits(s, value, length)
s
->
bi_valid
+=
length
;
}
}
#else
/* !DEBUG */
#else
/* !
ZLIB_
DEBUG */
#define send_bits(s, value, length) \
{ int len = length;\
...
...
@@ -223,7 +223,7 @@ local void send_bits(s, value, length)
s->bi_valid += len;\
}\
}
#endif
/* DEBUG */
#endif
/*
ZLIB_
DEBUG */
/* the arguments must not have side effects */
...
...
@@ -317,7 +317,7 @@ local void tr_static_init()
* Genererate the file trees.h describing the static trees.
*/
#ifdef GEN_TREES_H
# ifndef DEBUG
# ifndef
ZLIB_
DEBUG
# include <stdio.h>
# endif
...
...
@@ -394,7 +394,7 @@ void ZLIB_INTERNAL _tr_init(s)
s
->
bi_buf
=
0
;
s
->
bi_valid
=
0
;
#ifdef DEBUG
#ifdef
ZLIB_
DEBUG
s
->
compressed_len
=
0L
;
s
->
bits_sent
=
0L
;
#endif
...
...
@@ -869,7 +869,7 @@ void ZLIB_INTERNAL _tr_stored_block(s, buf, stored_len, last)
int
last
;
/* one if this is the last block for a file */
{
send_bits
(
s
,
(
STORED_BLOCK
<<
1
)
+
last
,
3
);
/* send block type */
#ifdef DEBUG
#ifdef
ZLIB_
DEBUG
s
->
compressed_len
=
(
s
->
compressed_len
+
3
+
7
)
&
(
ulg
)
~
7L
;
s
->
compressed_len
+=
(
stored_len
+
4
)
<<
3
;
#endif
...
...
@@ -894,7 +894,7 @@ void ZLIB_INTERNAL _tr_align(s)
{
send_bits
(
s
,
STATIC_TREES
<<
1
,
3
);
send_code
(
s
,
END_BLOCK
,
static_ltree
);
#ifdef DEBUG
#ifdef
ZLIB_
DEBUG
s
->
compressed_len
+=
10L
;
/* 3 for block type, 7 for EOB */
#endif
bi_flush
(
s
);
...
...
@@ -974,7 +974,7 @@ void ZLIB_INTERNAL _tr_flush_block(s, buf, stored_len, last)
send_bits
(
s
,
(
STATIC_TREES
<<
1
)
+
last
,
3
);
compress_block
(
s
,
(
const
ct_data
*
)
static_ltree
,
(
const
ct_data
*
)
static_dtree
);
#ifdef DEBUG
#ifdef
ZLIB_
DEBUG
s
->
compressed_len
+=
3
+
s
->
static_len
;
#endif
}
else
{
...
...
@@ -983,7 +983,7 @@ void ZLIB_INTERNAL _tr_flush_block(s, buf, stored_len, last)
max_blindex
+
1
);
compress_block
(
s
,
(
const
ct_data
*
)
s
->
dyn_ltree
,
(
const
ct_data
*
)
s
->
dyn_dtree
);
#ifdef DEBUG
#ifdef
ZLIB_
DEBUG
s
->
compressed_len
+=
3
+
s
->
opt_len
;
#endif
}
...
...
@@ -995,7 +995,7 @@ void ZLIB_INTERNAL _tr_flush_block(s, buf, stored_len, last)
if
(
last
)
{
bi_windup
(
s
);
#ifdef DEBUG
#ifdef
ZLIB_
DEBUG
s
->
compressed_len
+=
7
;
/* align on byte boundary */
#endif
}
...
...
@@ -1193,7 +1193,7 @@ local void bi_windup(s)
}
s
->
bi_buf
=
0
;
s
->
bi_valid
=
0
;
#ifdef DEBUG
#ifdef
ZLIB_
DEBUG
s
->
bits_sent
=
(
s
->
bits_sent
+
7
)
&
~
7
;
#endif
}
...
...
@@ -1213,11 +1213,11 @@ local void copy_block(s, buf, len, header)
if
(
header
)
{
put_short
(
s
,
(
ush
)
len
);
put_short
(
s
,
(
ush
)
~
len
);
#ifdef DEBUG
#ifdef
ZLIB_
DEBUG
s
->
bits_sent
+=
2
*
16
;
#endif
}
#ifdef DEBUG
#ifdef
ZLIB_
DEBUG
s
->
bits_sent
+=
(
ulg
)
len
<<
3
;
#endif
while
(
len
--
)
{
...
...
win32/Makefile.gcc
浏览文件 @
51a223de
...
...
@@ -39,7 +39,7 @@ IMPLIB = libz.dll.a
SHARED_MODE
=
0
#LOC = -DASMV
#LOC = -DDEBUG -g
#LOC = -D
ZLIB_
DEBUG -g
PREFIX
=
CC
=
$(PREFIX)
gcc
...
...
zlib.h
浏览文件 @
51a223de
...
...
@@ -1122,7 +1122,7 @@ ZEXTERN uLong ZEXPORT zlibCompileFlags OF((void));
7.6: size of z_off_t
Compiler, assembler, and debug options:
8: DEBUG
8:
ZLIB_
DEBUG
9: ASMV or ASMINF -- use ASM code
10: ZLIB_WINAPI -- exported functions use the WINAPI calling convention
11: 0 (reserved)
...
...
zutil.c
浏览文件 @
51a223de
...
...
@@ -61,7 +61,7 @@ uLong ZEXPORT zlibCompileFlags()
case
8
:
flags
+=
2
<<
6
;
break
;
default:
flags
+=
3
<<
6
;
}
#ifdef DEBUG
#ifdef
ZLIB_
DEBUG
flags
+=
1
<<
8
;
#endif
#if defined(ASMV) || defined(ASMINF)
...
...
@@ -115,7 +115,7 @@ uLong ZEXPORT zlibCompileFlags()
return
flags
;
}
#ifdef DEBUG
#ifdef
ZLIB_
DEBUG
# ifndef verbose
# define verbose 0
...
...
zutil.h
浏览文件 @
51a223de
...
...
@@ -216,7 +216,7 @@ extern z_const char * const z_errmsg[10]; /* indexed by 2-zlib_error */
#endif
/* Diagnostic functions */
#ifdef DEBUG
#ifdef
ZLIB_
DEBUG
# include <stdio.h>
extern
int
ZLIB_INTERNAL
z_verbose
;
extern
void
ZLIB_INTERNAL
z_error
OF
((
char
*
m
));
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录