Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Libpng
提交
a0e0c6c8
T
Third Party Libpng
项目概览
OpenHarmony
/
Third Party Libpng
11 个月 前同步成功
通知
4
Star
22
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
Third Party Libpng
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
a0e0c6c8
编写于
1月 01, 2010
作者:
G
Glenn Randers-Pehrson
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[devel] Avoid deprecated references to png_ptr-io_ptr and png_ptr->error_ptr
in pngtest.c
上级
a58818a0
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
33 addition
and
17 deletion
+33
-17
ANNOUNCE
ANNOUNCE
+13
-9
CHANGES
CHANGES
+5
-1
pngtest.c
pngtest.c
+15
-7
未找到文件。
ANNOUNCE
浏览文件 @
a0e0c6c8
Libpng 1.4.0rc0
7 - January 1
, 2010
Libpng 1.4.0rc0
8 - January 2
, 2010
This is not intended to be a public release. It will be replaced
within a few weeks by a public version or by another test version.
...
...
@@ -9,20 +9,20 @@ Files available for download:
Source files with LF line endings (for Unix/Linux) and with a
"configure" script
1.4.0rc0
7
.tar.xz (LZMA-compressed, recommended)
1.4.0rc0
7
.tar.gz
1.4.0rc0
7
.tar.bz2
1.4.0rc0
8
.tar.xz (LZMA-compressed, recommended)
1.4.0rc0
8
.tar.gz
1.4.0rc0
8
.tar.bz2
Source files with CRLF line endings (for Windows), without the
"configure" script
lp140r0
7
.zip
lp140r0
7
.7z
lp140r0
8
.zip
lp140r0
8
.7z
Other information:
1.4.0rc0
7
-README.txt
1.4.0rc0
7
-LICENSE.txt
1.4.0rc0
8
-README.txt
1.4.0rc0
8
-LICENSE.txt
Changes since the last public release (1.2.10):
...
...
@@ -764,7 +764,11 @@ version 1.4.0rc07 [January 1, 2010]
Use png_calloc() instead of png_malloc(); png_memset() in pngrutil.c
Update copyright year to 2010.
version 1.4.0 [January 1, 2010]
version 1.4.0rc08 [January 2, 2010]
Avoid deprecated references to png_ptr-io_ptr and png_ptr->error_ptr
in pngtest.c
version 1.4.0 [January 2, 2010]
No changes.
Send comments/corrections/commendations to png-mng-implement at lists.sf.net
...
...
CHANGES
浏览文件 @
a0e0c6c8
...
...
@@ -2451,7 +2451,11 @@ version 1.4.0rc07 [January 1, 2010]
Use png_calloc() instead of png_malloc(); png_memset() in pngrutil.c
Update copyright year to 2010.
version 1.4.0 [January 1, 2010]
version 1.4.0rc08 [January 2, 2010]
Avoid deprecated references to png_ptr-io_ptr and png_ptr->error_ptr
in pngtest.c
version 1.4.0 [January 2, 2010]
No changes.
Send comments/corrections/commendations to png-mng-implement at lists.sf.net
...
...
pngtest.c
浏览文件 @
a0e0c6c8
/* pngtest.c - a simple test program to test libpng
*
* Last changed in libpng 1.4.0 [January
1
, 2010]
* Last changed in libpng 1.4.0 [January
2
, 2010]
* Copyright (c) 1998-2010 Glenn Randers-Pehrson
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
* (Version 0.88 Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.)
...
...
@@ -267,12 +267,17 @@ static int wrote_question = 0;
static
void
pngtest_read_data
(
png_structp
png_ptr
,
png_bytep
data
,
png_size_t
length
)
{
png_size_t
check
;
png_size_t
check
=
0
;
png_voidp
io_ptr
;
/* fread() returns 0 on error, so it is OK to store this in a png_size_t
* instead of an int, which is what fread() actually returns.
*/
check
=
fread
(
data
,
1
,
length
,
(
png_FILE_p
)
png_ptr
->
io_ptr
);
io_ptr
=
png_get_io_ptr
(
png_ptr
);
if
(
io_ptr
!=
NULL
)
{
check
=
fread
(
data
,
1
,
length
,
(
png_FILE_p
)
io_ptr
);
}
if
(
check
!=
length
)
{
...
...
@@ -412,9 +417,12 @@ static void
pngtest_warning
(
png_structp
png_ptr
,
png_const_charp
message
)
{
PNG_CONST
char
*
name
=
"UNKNOWN (ERROR!)"
;
if
(
png_ptr
!=
NULL
&&
png_ptr
->
error_ptr
!=
NULL
)
name
=
png_ptr
->
error_ptr
;
fprintf
(
STDERR
,
"%s: libpng warning: %s
\n
"
,
name
,
message
);
char
*
test
;
test
=
png_get_error_ptr
(
png_ptr
);
if
(
test
==
NULL
)
fprintf
(
STDERR
,
"%s: libpng warning: %s
\n
"
,
name
,
message
);
else
fprintf
(
STDERR
,
"%s: libpng warning: %s
\n
"
,
test
,
message
);
}
/* This is the default error handling function. Note that replacements for
...
...
@@ -1619,4 +1627,4 @@ main(int argc, char *argv[])
}
/* Generate a compiler error if there is an old png.h in the search path. */
typedef
version_1_4_0rc0
7
your_png_h_is_not_version_1_4_0rc07
;
typedef
version_1_4_0rc0
8
your_png_h_is_not_version_1_4_0rc08
;
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录