Lines Matching refs:struct_ptr
39 png_voidp struct_ptr;
54 struct_ptr = (*(malloc_fn))(png_ptr, (png_uint_32)size);
58 struct_ptr = (png_voidp)farmalloc(size);
59 if (struct_ptr != NULL)
60 png_memset(struct_ptr, 0, size);
61 return (struct_ptr);
66 png_destroy_struct(png_voidp struct_ptr)
69 png_destroy_struct_2(struct_ptr, png_free_ptr_NULL, png_voidp_NULL);
74 png_destroy_struct_2(png_voidp struct_ptr, png_free_ptr free_fn,
78 if (struct_ptr != NULL)
86 (*(free_fn))(png_ptr, struct_ptr);
90 farfree (struct_ptr);
339 png_voidp struct_ptr;
354 struct_ptr = (*(malloc_fn))(png_ptr, size);
355 if (struct_ptr != NULL)
356 png_memset(struct_ptr, 0, size);
357 return (struct_ptr);
362 struct_ptr = (png_voidp)farmalloc(size);
365 struct_ptr = (png_voidp)halloc(size,1);
367 struct_ptr = (png_voidp)malloc(size);
370 if (struct_ptr != NULL)
371 png_memset(struct_ptr, 0, size);
373 return (struct_ptr);
379 png_destroy_struct(png_voidp struct_ptr)
382 png_destroy_struct_2(struct_ptr, png_free_ptr_NULL, png_voidp_NULL);
387 png_destroy_struct_2(png_voidp struct_ptr, png_free_ptr free_fn,
391 if (struct_ptr != NULL)
399 (*(free_fn))(png_ptr, struct_ptr);
404 farfree(struct_ptr);
407 hfree(struct_ptr);
409 free(struct_ptr);