Lines Matching refs:action
128 * action: Function to be called at each node
131 twalk(NODE *root, void (*action)(NODE *, VISIT, int))
134 if (root != NULL && action != NULL)
135 _twalk(root, action, 0);
143 * action: Function to be called at each node
146 _twalk(NODE *root, void (*action)(NODE *, VISIT, int), int level)
149 (*action)(root, leaf, level);
151 (*action)(root, preorder, level);
153 _twalk(root->llink, action, level + 1);
154 (*action)(root, postorder, level);
156 _twalk(root->rlink, action, level + 1);
157 (*action)(root, endorder, level);