Lines Matching refs:root
132 NODE *root = (NODE *)rt; in twalk() local
134 if (root != NULL && action != NULL) in twalk()
135 __twalk(root, action, 0); in twalk()
141 __twalk(NODE *root, /* Root of the tree to be walked */ in __twalk() argument
145 if (root->llink == NULL && root->rlink == NULL) in __twalk()
146 (*action)(root, leaf, level); in __twalk()
148 (*action)(root, preorder, level); in __twalk()
149 if (root->llink != NULL) in __twalk()
150 __twalk(root->llink, action, level + 1); in __twalk()
151 (*action)(root, postorder, level); in __twalk()
152 if (root->rlink != NULL) in __twalk()
153 __twalk(root->rlink, action, level + 1); in __twalk()
154 (*action)(root, endorder, level); in __twalk()