Lines Matching refs:tmp
81 struct lut **tmp_hdl = &root, *parent = NULL, *tmp = root;
83 while (tmp) {
85 diff = (*cmp_func)(tmp->lut_lhs, lhs);
87 diff = (const char *)lhs - (const char *)tmp->lut_lhs;
91 tmp->lut_rhs = rhs;
94 tmp_hdl = &(tmp->lut_left);
95 parent = tmp;
96 tmp = tmp->lut_left;
98 tmp_hdl = &(tmp->lut_right);
99 parent = tmp;
100 tmp = tmp->lut_right;
167 struct lut *tmp = root;
173 while (tmp->lut_left != NULL)
174 tmp = tmp->lut_left;
177 (*callback)(tmp->lut_lhs, tmp->lut_rhs, arg);
180 if (tmp->lut_right != NULL && tmp->lut_right != prev_child) {
181 tmp = tmp->lut_right;
182 while (tmp->lut_left != NULL)
183 tmp = tmp->lut_left;
186 (*callback)(tmp->lut_lhs, tmp->lut_rhs, arg);
187 } else if (tmp->lut_parent != NULL) {
188 prev_child = tmp;
189 tmp = tmp->lut_parent;
194 if (tmp->lut_right != prev_child)
195 (*callback)(tmp->lut_lhs, tmp->lut_rhs, arg);
207 struct lut *tmp = root;
213 while (tmp->lut_left != NULL)
214 tmp = tmp->lut_left;
218 (*callback)(tmp->lut_lhs, tmp->lut_rhs, arg);
221 if (tmp->lut_right != NULL && tmp->lut_right != prev_child) {
222 tmp = tmp->lut_right;
223 while (tmp->lut_left != NULL)
224 tmp = tmp->lut_left;
228 (*callback)(tmp->lut_lhs, tmp->lut_rhs, arg);
229 } else if (tmp->lut_parent != NULL) {
230 prev_child = tmp;
231 tmp = tmp->lut_parent;
237 if (tmp->lut_right != prev_child && callback)
238 (*callback)(tmp->lut_lhs, tmp->lut_rhs, arg);
243 FREE(tmp);