55 if (allocator == NULL)
59 if (resource == NULL) {
108 if (resource != NULL)
129 if (allocator == NULL)
c_Utility_ErrorCode_t c_linkedlist_insert_first(c_linkedlist_t *list, void *newElement)
void * c_calloc(size_t nmemb, size_t size)
c_linkedlist_t c_linkedlist_create()
struct c_listnode_t * next
void * c_linkedlist_delete_data_compare(c_linkedlist_t *list, void *data, c_listdata_comparator_t cmp)
void c_allocator_free(c_allocator_t *allocator, void *ptr)
void * c_allocator_malloc(c_allocator_t *allocator, size_t size)
c_resource_destroy_function destroy
static int _resource_comparator(const void *r, const void *d)
c_allocator_t c_allocator_create()
static void _allocator_release_or_destroy(c_allocator_t *allocator, void *ptr, bool destroy)
void * c_malloc(size_t size)
Generic wrappers to platform-dependent functions.
void(* c_resource_destroy_function)(void *)
void c_allocator_clear(c_allocator_t *allocator)
void * c_linkedlist_delete_first(c_linkedlist_t *list)
#define c_use_decl_annotations
void c_allocator_release(c_allocator_t *allocator, void *ptr)
int32_t c_allocator_error_count(const c_allocator_t *allocator)
void c_allocator_freeall(c_allocator_t *allocator)
void * c_allocator_resource_create(c_allocator_t *allocator, c_resource_destroy_function df, void *resource)
c_linkedlist_t allocated_resources
void * c_allocator_calloc(c_allocator_t *allocator, size_t nmemb, size_t size)