21 #ifndef __CCL_PROTOS_H__
22 # define __CCL_PROTOS_H__
38 # define CCL_DEFAULT_HASH_FUNC ((ccl_hash_func *) NULL)
50 # define CCL_NO_DELETE_PROC ((ccl_delete_proc *) NULL)
63 # define CCL_DEFAULT_EQUALS_FUNC ((ccl_equals_func *) NULL)
75 #define CCL_DEFAULT_COMPARE_WITH_DATA_FUNC NULL
77 typedef int ccl_compare_with_data_func (
const void *o1,
const void *o2,
84 # define CCL_DEFAULT_COMPARE_FUNC ((ccl_compare_func *) NULL)
95 # define CCL_DEFAULT_DUPLICATE_FUNC ((ccl_duplicate_func *) NULL)
97 typedef char *ccl_to_string_func (
const void *label);
99 typedef void ccl_map_proc (
void *obj,
void *data);
int ccl_equals_func(const void *ptr1, const void *ptr2)
Prototype of functions used to check the equality of two objects pointed respectively by ptr1 and ptr...
int ccl_compare_func(const void *ptr1, const void *ptr2)
Prototype of functions used to order two objects pointed respectively by ptr1 and ptr2...
void ccl_delete_proc(void *ptr)
Prototype of procedures used to release the resources allocated to the object pointed by ptr...
Some useful and common macros.
void * ccl_duplicate_func(void *ptr)
Prototype of functions used to duplicate an object pointed by ptr.
unsigned int ccl_hash_func(const void *ptr)
Prototype of functions used to compute a hashed value from an abstract object pointed by ptr...