# HG changeset patch # User Mike Becker # Date 1724086009 -7200 # Node ID 4b325b6391174fe61d711ac4de45e770dde1bca0 # Parent 7d3061f212cb5389d839fc64cb28b4ca03210c0c fix return type of cx_tree_node_create_func relates to #390 diff -r 7d3061f212cb -r 4b325b639117 src/cx/tree.h --- a/src/cx/tree.h Sun Aug 18 11:26:34 2024 +0200 +++ b/src/cx/tree.h Mon Aug 19 18:46:49 2024 +0200 @@ -422,8 +422,12 @@ * Returning a pointer to the existing node means, that the function decides * not to create a new node for the data and that the caller shall continue to * use the existing node. + * + * \note the function may leave the node pointers in the struct uninitialized. + * The caller is responsible to set them according to where the node will be + * added to the tree. */ -typedef void (*cx_tree_node_create_func)(void const *, void const *, void *); +typedef void *(*cx_tree_node_create_func)(void const *, void const *, void *); /** * The local search depth for a new subtree when adding multiple elements.