src/tree.c

changeset 1108
c3bde8ff1c0b
parent 1040
1ecf4dbbc60c
child 1109
89ec23988b88
equal deleted inserted replaced
1107:9d77c7a99441 1108:c3bde8ff1c0b
39 #define tree_prev(node) CX_TREE_PTR(node, loc_prev) 39 #define tree_prev(node) CX_TREE_PTR(node, loc_prev)
40 #define tree_next(node) CX_TREE_PTR(node, loc_next) 40 #define tree_next(node) CX_TREE_PTR(node, loc_next)
41 41
42 #define cx_tree_ptr_locations \ 42 #define cx_tree_ptr_locations \
43 loc_parent, loc_children, loc_last_child, loc_prev, loc_next 43 loc_parent, loc_children, loc_last_child, loc_prev, loc_next
44
45 #define cx_tree_node_layout(tree) \
46 (tree)->loc_parent,\
47 (tree)->loc_children,\
48 (tree)->loc_last_child,\
49 (tree)->loc_prev, \
50 (tree)->loc_next
44 51
45 static void cx_tree_zero_pointers( 52 static void cx_tree_zero_pointers(
46 void *node, 53 void *node,
47 ptrdiff_t loc_parent, 54 ptrdiff_t loc_parent,
48 ptrdiff_t loc_children, 55 ptrdiff_t loc_children,

mercurial