--- a/src/cx/collection.h Sun Dec 14 16:21:09 2025 +0100 +++ b/src/cx/collection.h Sun Dec 14 17:30:17 2025 +0100 @@ -159,7 +159,7 @@ * @param c a pointer to a struct that contains #CX_COLLECTION_BASE * @param func (@c cx_compare_func) the compare function that shall be used by @c c */ -#define cxCollectionCompareFunc(c, func) (c)->collection.cmpfunc = (func) +#define cxSetCompareFunc(c, func) (c)->collection.cmpfunc = (cx_compare_func)(func) /** * Sets a simple destructor function for this collection. @@ -167,7 +167,7 @@ * @param c a pointer to a struct that contains #CX_COLLECTION_BASE * @param destr the destructor function */ -#define cxDefineDestructor(c, destr) \ +#define cxSetDestructor(c, destr) \ (c)->collection.simple_destructor = (cx_destructor_func) destr /** @@ -176,7 +176,7 @@ * @param c a pointer to a struct that contains #CX_COLLECTION_BASE * @param destr the destructor function */ -#define cxDefineAdvancedDestructor(c, destr, data) \ +#define cxSetAdvancedDestructor(c, destr, data) \ (c)->collection.advanced_destructor = (cx_destructor_func2) destr; \ (c)->collection.destructor_data = data