Lines Matching defs:root
134 NODE *root = (NODE *)rt;
136 if (root != NULL && action != NULL)
137 __twalk(root, action, 0);
143 __twalk(NODE *root, /* Root of the tree to be walked */
147 if (root->llink == NULL && root->rlink == NULL)
148 (*action)(root, leaf, level);
150 (*action)(root, preorder, level);
151 if (root->llink != NULL)
152 __twalk(root->llink, action, level + 1);
153 (*action)(root, postorder, level);
154 if (root->rlink != NULL)
155 __twalk(root->rlink, action, level + 1);
156 (*action)(root, endorder, level);