[master] Added const_png_structp and const_png_infop types, and used them in

prototypes for most png_get_*() functions.
In the manual, describe the png_get_IHDR() arguments in the correct order.
This commit is contained in:
Glenn Randers-Pehrson
2011-01-21 11:09:07 -06:00
parent 23c2ea38a6
commit 379d0160ea
14 changed files with 300 additions and 277 deletions

View File

@@ -1,8 +1,8 @@
/* pngmem.c - stub functions for memory allocation
*
* Last changed in libpng 1.4.2 [May 6, 2010]
* Copyright (c) 1998-2010 Glenn Randers-Pehrson
* Last changed in libpng 1.4.6 [January 21, 2011]
* Copyright (c) 1998-2011 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.)
*
@@ -601,7 +601,7 @@ png_set_mem_fn(png_structp png_ptr, png_voidp mem_ptr, png_malloc_ptr
* pointer before png_write_destroy and png_read_destroy are called.
*/
png_voidp PNGAPI
png_get_mem_ptr(png_structp png_ptr)
png_get_mem_ptr(const_png_structp png_ptr)
{
if (png_ptr == NULL)
return (NULL);