Home | History | Annotate | Download | only in libpng-1.2.19

Lines Matching full:struct_ptr

41    png_voidp struct_ptr;
56 struct_ptr = (*(malloc_fn))(png_ptr, (png_uint_32)size);
60 struct_ptr = (png_voidp)farmalloc(size);
61 if (struct_ptr != NULL)
62 png_memset(struct_ptr, 0, size);
63 return (struct_ptr);
68 png_destroy_struct(png_voidp struct_ptr)
71 png_destroy_struct_2(struct_ptr, png_free_ptr_NULL, png_voidp_NULL);
76 png_destroy_struct_2(png_voidp struct_ptr, png_free_ptr free_fn,
80 if (struct_ptr != NULL)
88 (*(free_fn))(png_ptr, struct_ptr);
92 farfree (struct_ptr);
346 png_voidp struct_ptr;
361 struct_ptr = (*(malloc_fn))(png_ptr, size);
362 if (struct_ptr != NULL)
363 png_memset(struct_ptr, 0, size);
364 return (struct_ptr);
369 struct_ptr = (png_voidp)farmalloc(size);
372 struct_ptr = (png_voidp)halloc(size,1);
374 struct_ptr = (png_voidp)malloc(size);
377 if (struct_ptr != NULL)
378 png_memset(struct_ptr, 0, size);
380 return (struct_ptr);
386 png_destroy_struct(png_voidp struct_ptr)
389 png_destroy_struct_2(struct_ptr, png_free_ptr_NULL, png_voidp_NULL);
394 png_destroy_struct_2(png_voidp struct_ptr, png_free_ptr free_fn,
398 if (struct_ptr != NULL)
406 (*(free_fn))(png_ptr, struct_ptr);
411 farfree(struct_ptr);
414 hfree(struct_ptr);
416 free(struct_ptr);