Lines Matching refs:next

56 	(*planp) = (*planp)->next;  in yanknode()
57 node->next = NULL; in yanknode()
70 PLAN *next; /* temp node holding subexpression results */ in yankexpr() local
88 if ((next = yankexpr(planp)) == NULL) in yankexpr()
97 if (next->type == N_CLOSEPAREN) { in yankexpr()
106 tail = subplan = next; in yankexpr()
108 tail->next = next; in yankexpr()
109 tail = next; in yankexpr()
111 tail->next = NULL; in yankexpr()
146 tail->next = expr; in paren_squish()
149 tail->next = NULL; in paren_squish()
161 PLAN *next; /* next node being processed */ in not_squish() local
166 tail = result = next = NULL; in not_squish()
168 while ((next = yanknode(&plan)) != NULL) { in not_squish()
173 if (next->type == N_EXPR) in not_squish()
174 next->p_data[0] = not_squish(next->p_data[0]); in not_squish()
181 if (next->type == N_NOT) { in not_squish()
196 next = node; in not_squish()
198 next->p_data[0] = node; in not_squish()
203 tail = result = next; in not_squish()
205 tail->next = next; in not_squish()
206 tail = next; in not_squish()
208 tail->next = NULL; in not_squish()
220 PLAN *next; /* next node being processed */ in or_squish() local
224 tail = result = next = NULL; in or_squish()
226 while ((next = yanknode(&plan)) != NULL) { in or_squish()
231 if (next->type == N_EXPR) in or_squish()
232 next->p_data[0] = or_squish(next->p_data[0]); in or_squish()
235 if (next->type == N_NOT) in or_squish()
236 next->p_data[0] = or_squish(next->p_data[0]); in or_squish()
243 if (next->type == N_OR) { in or_squish()
246 next->p_data[0] = result; in or_squish()
247 next->p_data[1] = or_squish(plan); in or_squish()
248 if (next->p_data[1] == NULL) in or_squish()
250 return (next); in or_squish()
255 tail = result = next; in or_squish()
257 tail->next = next; in or_squish()
258 tail = next; in or_squish()
260 tail->next = NULL; in or_squish()