OLD | NEW |
1 | 1 |
2 /* pngmem.c - stub functions for memory allocation | 2 /* pngmem.c - stub functions for memory allocation |
3 * | 3 * |
4 * Last changed in libpng 1.6.15 [November 20, 2014] | 4 * Last changed in libpng 1.6.15 [November 20, 2014] |
5 * Copyright (c) 1998-2014 Glenn Randers-Pehrson | 5 * Copyright (c) 1998-2014 Glenn Randers-Pehrson |
6 * (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger) | 6 * (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger) |
7 * (Version 0.88 Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.) | 7 * (Version 0.88 Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.) |
8 * | 8 * |
9 * This code is released under the libpng license. | 9 * This code is released under the libpng license. |
10 * For conditions of distribution and use, see the disclaimer | 10 * For conditions of distribution and use, see the disclaimer |
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
278 png_voidp PNGAPI | 278 png_voidp PNGAPI |
279 png_get_mem_ptr(png_const_structrp png_ptr) | 279 png_get_mem_ptr(png_const_structrp png_ptr) |
280 { | 280 { |
281 if (png_ptr == NULL) | 281 if (png_ptr == NULL) |
282 return NULL; | 282 return NULL; |
283 | 283 |
284 return png_ptr->mem_ptr; | 284 return png_ptr->mem_ptr; |
285 } | 285 } |
286 #endif /* USER_MEM */ | 286 #endif /* USER_MEM */ |
287 #endif /* READ || WRITE */ | 287 #endif /* READ || WRITE */ |
OLD | NEW |