Lines Matching refs:root
28 trecurse(const posix_tnode *root, cmp_fn_t action, int level)
31 if (root->llink == NULL && root->rlink == NULL)
32 (*action)(root, leaf, level);
34 (*action)(root, preorder, level);
35 if (root->llink != NULL)
36 trecurse(root->llink, action, level + 1);
37 (*action)(root, postorder, level);
38 if (root->rlink != NULL)
39 trecurse(root->rlink, action, level + 1);
40 (*action)(root, endorder, level);