Lines Matching defs:root
30 trecurse(const node_t *root, /* Root of the tree to be walked */
34 if (root->llink == NULL && root->rlink == NULL)
35 (*action)(root, leaf, level);
37 (*action)(root, preorder, level);
38 if (root->llink != NULL)
39 trecurse(root->llink, action, level + 1);
40 (*action)(root, postorder, level);
41 if (root->rlink != NULL)
42 trecurse(root->rlink, action, level + 1);
43 (*action)(root, endorder, level);