зеркало из https://github.com/mozilla/pjs.git
r=glennrp@home.com(PNG person), sr=tor Some PNG APIs should be PRIVATE
This commit is contained in:
Родитель
11f8abad25
Коммит
c77cbc2903
|
@ -135,7 +135,7 @@ png_check_sig(png_bytep sig, int num)
|
|||
}
|
||||
|
||||
/* Function to allocate memory for zlib and clear it to 0. */
|
||||
voidpf PNGAPI
|
||||
voidpf /* PRIVATE */
|
||||
png_zalloc(voidpf png_ptr, uInt items, uInt size)
|
||||
{
|
||||
png_uint_32 num_bytes = (png_uint_32)items * size;
|
||||
|
@ -157,7 +157,7 @@ png_zalloc(voidpf png_ptr, uInt items, uInt size)
|
|||
}
|
||||
|
||||
/* function to free memory for zlib */
|
||||
void PNGAPI
|
||||
void /* PRIVATE */
|
||||
png_zfree(voidpf png_ptr, voidpf ptr)
|
||||
{
|
||||
png_free((png_structp)png_ptr, (png_voidp)ptr);
|
||||
|
@ -255,7 +255,7 @@ png_destroy_info_struct(png_structp png_ptr, png_infopp info_ptr_ptr)
|
|||
* and applications using it are urged to use png_create_info_struct()
|
||||
* instead.
|
||||
*/
|
||||
void PNGAPI
|
||||
void /* PRIVATE */
|
||||
png_info_init(png_infop info_ptr)
|
||||
{
|
||||
png_debug(1, "in png_info_init\n");
|
||||
|
@ -667,7 +667,7 @@ png_get_header_version(png_structp png_ptr)
|
|||
}
|
||||
|
||||
#ifdef PNG_HANDLE_AS_UNKNOWN_SUPPORTED
|
||||
int PNGAPI
|
||||
int /* PRIVATE */
|
||||
png_handle_as_unknown(png_structp png_ptr, png_bytep chunk_name)
|
||||
{
|
||||
/* check chunk_name and return "keep" value if it's on the list, else 0 */
|
||||
|
|
|
@ -1052,7 +1052,7 @@ png_destroy_read_struct(png_structpp png_ptr_ptr, png_infopp info_ptr_ptr,
|
|||
}
|
||||
|
||||
/* free all memory used by the read (old method) */
|
||||
void PNGAPI
|
||||
void /* PRIVATE */
|
||||
png_read_destroy(png_structp png_ptr, png_infop info_ptr, png_infop end_info_ptr)
|
||||
{
|
||||
#ifdef PNG_SETJMP_SUPPORTED
|
||||
|
|
|
@ -924,7 +924,7 @@ png_destroy_write_struct(png_structpp png_ptr_ptr, png_infopp info_ptr_ptr)
|
|||
|
||||
|
||||
/* Free any memory used in png_ptr struct (old method) */
|
||||
void PNGAPI
|
||||
void /* PRIVATE */
|
||||
png_write_destroy(png_structp png_ptr)
|
||||
{
|
||||
#ifdef PNG_SETJMP_SUPPORTED
|
||||
|
|
Загрузка…
Ссылка в новой задаче