Lines Matching full:root
57 trecurse(const node_t *root, void (*action)(const void *, VISIT, int), int level) in trecurse() argument
60 if (root->llink == NULL && root->rlink == NULL) in trecurse()
61 (*action)(root, leaf, level); in trecurse()
63 (*action)(root, preorder, level); in trecurse()
64 if (root->llink != NULL) in trecurse()
65 trecurse(root->llink, action, level + 1); in trecurse()
66 (*action)(root, postorder, level); in trecurse()
67 if (root->rlink != NULL) in trecurse()
68 trecurse(root->rlink, action, level + 1); in trecurse()
69 (*action)(root, endorder, level); in trecurse()
75 twalk (const void *vroot, /* Root of the tree to be walked */ in twalk()