Lines Matching refs:root
95 trecurse(node *root, void (*action)(const void *, VISIT, int), int level) in trecurse() argument
97 if (root->left == (struct node_t *)0 && root->right == (struct node_t *)0) in trecurse()
98 (*action)(root, leaf, level); in trecurse()
100 (*action)(root, preorder, level); in trecurse()
101 if (root->left != (struct node_t *)0) in trecurse()
102 trecurse(root->left, action, level + 1); in trecurse()
103 (*action)(root, postorder, level); in trecurse()
104 if (root->right != (struct node_t *)0) in trecurse()
105 trecurse(root->right, action, level + 1); in trecurse()
106 (*action)(root, endorder, level); in trecurse()
114 node *root = (node *)vroot; in twalk() local
116 if (root != (node *)0 && action != (void (*)(const void *, VISIT, int))0) in twalk()
117 trecurse(root, action, 0); in twalk()