Home | History | Annotate | Download | only in libpng

Lines Matching full:struct_ptr

44    png_voidp struct_ptr;
61 struct_ptr = (*(malloc_fn))(&dummy_struct, (png_alloc_size_t)size);
66 struct_ptr = (png_voidp)farmalloc(size);
67 if (struct_ptr != NULL)
68 png_memset(struct_ptr, 0, size);
70 return (struct_ptr);
75 png_destroy_struct(png_voidp struct_ptr)
78 png_destroy_struct_2(struct_ptr, NULL, NULL);
83 png_destroy_struct_2(png_voidp struct_ptr, png_free_ptr free_fn,
87 if (struct_ptr != NULL)
95 (*(free_fn))(&dummy_struct, struct_ptr);
100 farfree (struct_ptr);
393 png_voidp struct_ptr;
410 struct_ptr = (*(malloc_fn))(png_ptr, size);
412 if (struct_ptr != NULL)
413 png_memset(struct_ptr, 0, size);
415 return (struct_ptr);
420 struct_ptr = (png_voidp)farmalloc(size);
423 struct_ptr = (png_voidp)halloc(size, 1);
425 struct_ptr = (png_voidp)malloc(size);
429 if (struct_ptr != NULL)
430 png_memset(struct_ptr, 0, size);
432 return (struct_ptr);
438 png_destroy_struct(png_voidp struct_ptr)
441 png_destroy_struct_2(struct_ptr, NULL, NULL);
446 png_destroy_struct_2(png_voidp struct_ptr, png_free_ptr free_fn,
450 if (struct_ptr != NULL)
458 (*(free_fn))(png_ptr, struct_ptr);
463 farfree(struct_ptr);
467 hfree(struct_ptr);
470 free(struct_ptr);