Lines Matching defs:struct_ptr
72 png_voidp struct_ptr;
89 struct_ptr = (*(malloc_fn))(png_ptr, (png_uint_32)size);
94 struct_ptr = (png_voidp)farmalloc(size);
95 if (struct_ptr != NULL)
96 png_memset(struct_ptr, 0, size);
98 return (struct_ptr);
103 png_destroy_struct(png_voidp struct_ptr)
106 png_destroy_struct_2(struct_ptr, NULL, NULL);
111 png_destroy_struct_2(png_voidp struct_ptr, png_free_ptr free_fn,
115 if (struct_ptr != NULL)
123 (*(free_fn))(png_ptr, struct_ptr);
128 farfree (struct_ptr);
421 png_voidp struct_ptr;
438 struct_ptr = (*(malloc_fn))(png_ptr, size);
440 if (struct_ptr != NULL)
441 png_memset(struct_ptr, 0, size);
443 return (struct_ptr);
448 struct_ptr = (png_voidp)farmalloc(size);
451 struct_ptr = (png_voidp)halloc(size, 1);
453 struct_ptr = (png_voidp)malloc(size);
457 if (struct_ptr != NULL)
458 png_memset(struct_ptr, 0, size);
460 return (struct_ptr);
466 png_destroy_struct(png_voidp struct_ptr)
469 png_destroy_struct_2(struct_ptr, NULL, NULL);
474 png_destroy_struct_2(png_voidp struct_ptr, png_free_ptr free_fn,
478 if (struct_ptr != NULL)
486 (*(free_fn))(png_ptr, struct_ptr);
491 farfree(struct_ptr);
495 hfree(struct_ptr);
498 free(struct_ptr);