mirror of
https://git.code.sf.net/p/libpng/code.git
synced 2025-07-10 18:04:09 +02:00
[libpng17] Moved redefines of png_error(), png_warning(), png_chunk_error(),
and png_chunk_warning() from pngpriv.h to png.h to make them visible to libpng-calling applications.
This commit is contained in:
parent
50a09830b8
commit
258b986917
11
ANNOUNCE
11
ANNOUNCE
@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
Libpng 1.7.0beta32 - February 6, 2014
|
Libpng 1.7.0beta32 - February 16, 2014
|
||||||
|
|
||||||
This is not intended to be a public release. It will be replaced
|
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.
|
within a few weeks by a public version or by another test version.
|
||||||
@ -22,7 +22,7 @@ Other information:
|
|||||||
|
|
||||||
1.7.0beta32-README.txt
|
1.7.0beta32-README.txt
|
||||||
1.7.0beta32-LICENSE.txt
|
1.7.0beta32-LICENSE.txt
|
||||||
Gnupg/*.asc (PGP armored detached signatures)
|
libpng-1.7.0beta32-*.asc (armored detached GPG signatures)
|
||||||
|
|
||||||
Changes since the last public release (1.6.0):
|
Changes since the last public release (1.6.0):
|
||||||
|
|
||||||
@ -446,7 +446,7 @@ Version 1.7.0beta24 [December 15, 2013]
|
|||||||
Tidied up pngfix inits and fixed pngtest no-write builds.
|
Tidied up pngfix inits and fixed pngtest no-write builds.
|
||||||
Bookkeeping: Moved functions around (no changes). Moved transform
|
Bookkeeping: Moved functions around (no changes). Moved transform
|
||||||
function definitions before the place where they are called so that
|
function definitions before the place where they are called so that
|
||||||
they can be masde static. Move the intrapixel functions and the
|
they can be made static. Move the intrapixel functions and the
|
||||||
grayscale palette builder out of the png?tran.c files. The latter
|
grayscale palette builder out of the png?tran.c files. The latter
|
||||||
isn't a transform function and is no longer used internally, and the
|
isn't a transform function and is no longer used internally, and the
|
||||||
former MNG specific functions are better placed in pngread/pngwrite.c
|
former MNG specific functions are better placed in pngread/pngwrite.c
|
||||||
@ -533,7 +533,10 @@ Version 1.7.0beta31 [February 6, 2014]
|
|||||||
and it adds corresponding code to pngimage.c to handle such options
|
and it adds corresponding code to pngimage.c to handle such options
|
||||||
by not attempting to test them.
|
by not attempting to test them.
|
||||||
|
|
||||||
Version 1.7.0beta32 [February 6, 2014]
|
Version 1.7.0beta32 [February 16, 2014]
|
||||||
|
Moved redefines of png_error(), png_warning(), png_chunk_error(),
|
||||||
|
and png_chunk_warning() from pngpriv.h to png.h to make them visible
|
||||||
|
to libpng-calling applications.
|
||||||
|
|
||||||
Send comments/corrections/commendations to png-mng-implement at lists.sf.net
|
Send comments/corrections/commendations to png-mng-implement at lists.sf.net
|
||||||
(subscription required; visit
|
(subscription required; visit
|
||||||
|
7
CHANGES
7
CHANGES
@ -4735,7 +4735,7 @@ Version 1.7.0beta24 [December 15, 2013]
|
|||||||
Tidied up pngfix inits and fixed pngtest no-write builds.
|
Tidied up pngfix inits and fixed pngtest no-write builds.
|
||||||
Bookkeeping: Moved functions around (no changes). Moved transform
|
Bookkeeping: Moved functions around (no changes). Moved transform
|
||||||
function definitions before the place where they are called so that
|
function definitions before the place where they are called so that
|
||||||
they can be masde static. Move the intrapixel functions and the
|
they can be made static. Move the intrapixel functions and the
|
||||||
grayscale palette builder out of the png?tran.c files. The latter
|
grayscale palette builder out of the png?tran.c files. The latter
|
||||||
isn't a transform function and is no longer used internally, and the
|
isn't a transform function and is no longer used internally, and the
|
||||||
former MNG specific functions are better placed in pngread/pngwrite.c
|
former MNG specific functions are better placed in pngread/pngwrite.c
|
||||||
@ -4822,7 +4822,10 @@ Version 1.7.0beta31 [February 6, 2014]
|
|||||||
and it adds corresponding code to pngimage.c to handle such options
|
and it adds corresponding code to pngimage.c to handle such options
|
||||||
by not attempting to test them.
|
by not attempting to test them.
|
||||||
|
|
||||||
Version 1.7.0beta32 [February 6, 2014]
|
Version 1.7.0beta32 [February 16, 2014]
|
||||||
|
Moved redefines of png_error(), png_warning(), png_chunk_error(),
|
||||||
|
and png_chunk_warning() from pngpriv.h to png.h to make them visible
|
||||||
|
to libpng-calling applications.
|
||||||
|
|
||||||
Send comments/corrections/commendations to png-mng-implement at lists.sf.net
|
Send comments/corrections/commendations to png-mng-implement at lists.sf.net
|
||||||
(subscription required; visit
|
(subscription required; visit
|
||||||
|
15
png.h
15
png.h
@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
/* png.h - header file for PNG reference library
|
/* png.h - header file for PNG reference library
|
||||||
*
|
*
|
||||||
* libpng version 1.7.0beta32 - February 6, 2014
|
* libpng version 1.7.0beta32 - February 16, 2014
|
||||||
* Copyright (c) 1998-2013 Glenn Randers-Pehrson
|
* Copyright (c) 1998-2013 Glenn Randers-Pehrson
|
||||||
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
|
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
|
||||||
* (Version 0.88 Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.)
|
* (Version 0.88 Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.)
|
||||||
@ -11,7 +11,7 @@
|
|||||||
* Authors and maintainers:
|
* Authors and maintainers:
|
||||||
* libpng versions 0.71, May 1995, through 0.88, January 1996: Guy Schalnat
|
* libpng versions 0.71, May 1995, through 0.88, January 1996: Guy Schalnat
|
||||||
* libpng versions 0.89c, June 1996, through 0.96, May 1997: Andreas Dilger
|
* libpng versions 0.89c, June 1996, through 0.96, May 1997: Andreas Dilger
|
||||||
* libpng versions 0.97, January 1998, through 1.7.0beta32 - February 6, 2014: Glenn
|
* libpng versions 0.97, January 1998, through 1.7.0beta32 - February 16, 2014: Glenn
|
||||||
* See also "Contributing Authors", below.
|
* See also "Contributing Authors", below.
|
||||||
*
|
*
|
||||||
* Note about libpng version numbers:
|
* Note about libpng version numbers:
|
||||||
@ -200,7 +200,7 @@
|
|||||||
*
|
*
|
||||||
* This code is released under the libpng license.
|
* This code is released under the libpng license.
|
||||||
*
|
*
|
||||||
* libpng versions 1.2.6, August 15, 2004, through 1.7.0beta32, February 6, 2014, are
|
* libpng versions 1.2.6, August 15, 2004, through 1.7.0beta32, February 16, 2014, are
|
||||||
* Copyright (c) 2004, 2006-2013 Glenn Randers-Pehrson, and are
|
* Copyright (c) 2004, 2006-2013 Glenn Randers-Pehrson, and are
|
||||||
* distributed according to the same disclaimer and license as libpng-1.2.5
|
* distributed according to the same disclaimer and license as libpng-1.2.5
|
||||||
* with the following individual added to the list of Contributing Authors:
|
* with the following individual added to the list of Contributing Authors:
|
||||||
@ -312,7 +312,7 @@
|
|||||||
* Y2K compliance in libpng:
|
* Y2K compliance in libpng:
|
||||||
* =========================
|
* =========================
|
||||||
*
|
*
|
||||||
* February 6, 2014
|
* February 16, 2014
|
||||||
*
|
*
|
||||||
* Since the PNG Development group is an ad-hoc body, we can't make
|
* Since the PNG Development group is an ad-hoc body, we can't make
|
||||||
* an official declaration.
|
* an official declaration.
|
||||||
@ -380,7 +380,7 @@
|
|||||||
/* Version information for png.h - this should match the version in png.c */
|
/* Version information for png.h - this should match the version in png.c */
|
||||||
#define PNG_LIBPNG_VER_STRING "1.7.0beta32"
|
#define PNG_LIBPNG_VER_STRING "1.7.0beta32"
|
||||||
#define PNG_HEADER_VERSION_STRING \
|
#define PNG_HEADER_VERSION_STRING \
|
||||||
" libpng version 1.7.0beta32 - February 6, 2014\n"
|
" libpng version 1.7.0beta32 - February 16, 2014\n"
|
||||||
|
|
||||||
#define PNG_LIBPNG_VER_SONUM 17
|
#define PNG_LIBPNG_VER_SONUM 17
|
||||||
#define PNG_LIBPNG_VER_DLLNUM 17
|
#define PNG_LIBPNG_VER_DLLNUM 17
|
||||||
@ -2100,6 +2100,8 @@ PNG_EXPORTA(103, void, png_chunk_error, (png_const_structrp png_ptr,
|
|||||||
#else
|
#else
|
||||||
/* Fatal error in PNG image of libpng - can't continue */
|
/* Fatal error in PNG image of libpng - can't continue */
|
||||||
PNG_EXPORTA(104, void, png_err, (png_const_structrp png_ptr), PNG_NORETURN);
|
PNG_EXPORTA(104, void, png_err, (png_const_structrp png_ptr), PNG_NORETURN);
|
||||||
|
# define png_error(s1,s2) png_err(s1)
|
||||||
|
# define png_chunk_error(s1,s2) png_err(s1)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef PNG_WARNINGS_SUPPORTED
|
#ifdef PNG_WARNINGS_SUPPORTED
|
||||||
@ -2110,6 +2112,9 @@ PNG_EXPORT(105, void, png_warning, (png_const_structrp png_ptr,
|
|||||||
/* Non-fatal error in libpng, chunk name is prepended to message. */
|
/* Non-fatal error in libpng, chunk name is prepended to message. */
|
||||||
PNG_EXPORT(106, void, png_chunk_warning, (png_const_structrp png_ptr,
|
PNG_EXPORT(106, void, png_chunk_warning, (png_const_structrp png_ptr,
|
||||||
png_const_charp warning_message));
|
png_const_charp warning_message));
|
||||||
|
#else
|
||||||
|
# define png_warning(s1,s2) ((void)(s1))
|
||||||
|
# define png_chunk_warning(s1,s2) ((void)(s1))
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef PNG_BENIGN_ERRORS_SUPPORTED
|
#ifdef PNG_BENIGN_ERRORS_SUPPORTED
|
||||||
|
@ -429,8 +429,6 @@
|
|||||||
#ifdef PNG_WARNINGS_SUPPORTED
|
#ifdef PNG_WARNINGS_SUPPORTED
|
||||||
# define PNG_WARNING_PARAMETERS(p) png_warning_parameters p;
|
# define PNG_WARNING_PARAMETERS(p) png_warning_parameters p;
|
||||||
#else
|
#else
|
||||||
# define png_warning(s1,s2) ((void)(s1))
|
|
||||||
# define png_chunk_warning(s1,s2) ((void)(s1))
|
|
||||||
# define png_warning_parameter(p,number,string) ((void)0)
|
# define png_warning_parameter(p,number,string) ((void)0)
|
||||||
# define png_warning_parameter_unsigned(p,number,format,value) ((void)0)
|
# define png_warning_parameter_unsigned(p,number,format,value) ((void)0)
|
||||||
# define png_warning_parameter_signed(p,number,format,value) ((void)0)
|
# define png_warning_parameter_signed(p,number,format,value) ((void)0)
|
||||||
@ -438,8 +436,6 @@
|
|||||||
# define PNG_WARNING_PARAMETERS(p)
|
# define PNG_WARNING_PARAMETERS(p)
|
||||||
#endif
|
#endif
|
||||||
#ifndef PNG_ERROR_TEXT_SUPPORTED
|
#ifndef PNG_ERROR_TEXT_SUPPORTED
|
||||||
# define png_error(s1,s2) png_err(s1)
|
|
||||||
# define png_chunk_error(s1,s2) png_err(s1)
|
|
||||||
# define png_fixed_error(s1,s2) png_err(s1)
|
# define png_fixed_error(s1,s2) png_err(s1)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user