src/ucx/avl.h

changeset 312
e1e3b768ae8b
parent 308
d6f580621512
equal deleted inserted replaced
311:e1f3248576bc 312:e1e3b768ae8b
164 */ 164 */
165 void ucx_avl_free_content(UcxAVLTree *tree, ucx_destructor destr); 165 void ucx_avl_free_content(UcxAVLTree *tree, ucx_destructor destr);
166 166
167 /** 167 /**
168 * Macro for initializing a new UcxAVLTree with the default allocator and a 168 * Macro for initializing a new UcxAVLTree with the default allocator and a
169 * ucx_ptrcmp() compare function. 169 * ucx_cmp_ptr() compare function.
170 * 170 *
171 * @return a new default UcxAVLTree object 171 * @return a new default UcxAVLTree object
172 */ 172 */
173 #define ucx_avl_default_new() ucx_avl_new_a(ucx_ptrcmp, ucx_default_allocator()) 173 #define ucx_avl_default_new() \
174 ucx_avl_new_a(ucx_cmp_ptr, ucx_default_allocator())
174 175
175 /** 176 /**
176 * Gets the node from the tree, that is associated with the specified key. 177 * Gets the node from the tree, that is associated with the specified key.
177 * @param tree the UcxAVLTree 178 * @param tree the UcxAVLTree
178 * @param key the key 179 * @param key the key

mercurial