Lines Matching refs:next
56 (*planp) = (*planp)->next;
57 node->next = NULL;
70 PLAN *next; /* temp node holding subexpression results */
88 if ((next = yankexpr(planp)) == NULL)
97 if (next->type == N_CLOSEPAREN) {
106 tail = subplan = next;
108 tail->next = next;
109 tail = next;
111 tail->next = NULL;
124 PLAN *expr; /* pointer to next expression */
146 tail->next = expr;
149 tail->next = NULL;
161 PLAN *next; /* next node being processed */
166 tail = result = next = NULL;
168 while ((next = yanknode(&plan)) != NULL) {
173 if (next->type == N_EXPR)
174 next->p_data[0] = not_squish(next->p_data[0]);
177 * if we encounter a not, then snag the next node and place
181 if (next->type == N_NOT) {
196 next = node;
198 next->p_data[0] = node;
203 tail = result = next;
205 tail->next = next;
206 tail = next;
208 tail->next = NULL;
220 PLAN *next; /* next node being processed */
224 tail = result = next = NULL;
226 while ((next = yanknode(&plan)) != NULL) {
231 if (next->type == N_EXPR)
232 next->p_data[0] = or_squish(next->p_data[0]);
235 if (next->type == N_NOT)
236 next->p_data[0] = or_squish(next->p_data[0]);
243 if (next->type == N_OR) {
246 next->p_data[0] = result;
247 next->p_data[1] = or_squish(plan);
248 if (next->p_data[1] == NULL)
250 return (next);
255 tail = result = next;
257 tail->next = next;
258 tail = next;
260 tail->next = NULL;