Lines Matching refs:action
29 cmp_fn_t action, int level) in trecurse() argument
32 _DIAGASSERT(action != NULL); in trecurse()
35 (*action)(root, leaf, level); in trecurse()
37 (*action)(root, preorder, level); in trecurse()
39 trecurse(root->llink, action, level + 1); in trecurse()
40 (*action)(root, postorder, level); in trecurse()
42 trecurse(root->rlink, action, level + 1); in trecurse()
43 (*action)(root, endorder, level); in trecurse()
49 twalk(const void *vroot, cmp_fn_t action) /* Root of the tree to be walked */ in twalk() argument
51 if (vroot != NULL && action != NULL) in twalk()
52 trecurse(vroot, action, 0); in twalk()