• Home
  • Raw
  • Download

Lines Matching refs:struct_ptr

44    png_voidp struct_ptr;  in png_create_struct_2()  local
59 struct_ptr = (*(malloc_fn))(png_ptr, (png_uint_32)size); in png_create_struct_2()
63 struct_ptr = (png_voidp)farmalloc(size); in png_create_struct_2()
64 if (struct_ptr != NULL) in png_create_struct_2()
65 png_memset(struct_ptr, 0, size); in png_create_struct_2()
66 return (struct_ptr); in png_create_struct_2()
71 png_destroy_struct(png_voidp struct_ptr) in png_destroy_struct() argument
74 png_destroy_struct_2(struct_ptr, png_free_ptr_NULL, png_voidp_NULL); in png_destroy_struct()
79 png_destroy_struct_2(png_voidp struct_ptr, png_free_ptr free_fn, in png_destroy_struct_2() argument
83 if (struct_ptr != NULL) in png_destroy_struct_2()
91 (*(free_fn))(png_ptr, struct_ptr); in png_destroy_struct_2()
95 farfree (struct_ptr); in png_destroy_struct_2()
362 png_voidp struct_ptr; in png_create_struct_2() local
377 struct_ptr = (*(malloc_fn))(png_ptr, size); in png_create_struct_2()
378 if (struct_ptr != NULL) in png_create_struct_2()
379 png_memset(struct_ptr, 0, size); in png_create_struct_2()
380 return (struct_ptr); in png_create_struct_2()
385 struct_ptr = (png_voidp)farmalloc(size); in png_create_struct_2()
388 struct_ptr = (png_voidp)halloc(size, 1); in png_create_struct_2()
390 struct_ptr = (png_voidp)malloc(size); in png_create_struct_2()
393 if (struct_ptr != NULL) in png_create_struct_2()
394 png_memset(struct_ptr, 0, size); in png_create_struct_2()
396 return (struct_ptr); in png_create_struct_2()
402 png_destroy_struct(png_voidp struct_ptr) in png_destroy_struct() argument
405 png_destroy_struct_2(struct_ptr, png_free_ptr_NULL, png_voidp_NULL); in png_destroy_struct()
410 png_destroy_struct_2(png_voidp struct_ptr, png_free_ptr free_fn, in png_destroy_struct_2() argument
414 if (struct_ptr != NULL) in png_destroy_struct_2()
422 (*(free_fn))(png_ptr, struct_ptr); in png_destroy_struct_2()
427 farfree(struct_ptr); in png_destroy_struct_2()
430 hfree(struct_ptr); in png_destroy_struct_2()
432 free(struct_ptr); in png_destroy_struct_2()