--- a/src/cx/tree.h Mon Nov 18 22:05:42 2024 +0100 +++ b/src/cx/tree.h Sat Nov 23 14:45:32 2024 +0100 @@ -954,6 +954,7 @@ * will free the nodes with the allocator's free() method. * * @param allocator the allocator that shall be used + * (if \c NULL, a default stdlib allocator will be used) * @param create_func a function that creates new nodes * @param search_func a function that compares two nodes * @param search_data_func a function that compares a node with data @@ -967,7 +968,7 @@ * @see cxTreeCreateSimple() * @see cxTreeCreateWrapped() */ -cx_attr_nonnull +cx_attr_nonnull_arg(2, 3, 4) cx_attr_nodiscard cx_attr_malloc cx_attr_dealloc(cxTreeDestroy, 1) @@ -1016,6 +1017,7 @@ * tree, you need to specify those functions afterwards. * * @param allocator the allocator that was used for nodes of the wrapped tree + * (if \c NULL, a default stdlib allocator is assumed) * @param root the root node of the tree that shall be wrapped * @param loc_parent offset in the node struct for the parent pointer * @param loc_children offset in the node struct for the children linked list @@ -1026,7 +1028,7 @@ * @return the new tree * @see cxTreeCreate() */ -cx_attr_nonnull +cx_attr_nonnull_arg(2) cx_attr_nodiscard cx_attr_malloc cx_attr_dealloc(cxTreeDestroy, 1)