Lines Matching refs:next
66 (*planp) = (*planp)->next;
67 node->next = NULL;
80 PLAN *next; /* temp node holding subexpression results */
97 if ((next = yankexpr(planp)) == NULL)
106 if (next->type == N_CLOSEPAREN) {
115 tail = subplan = next;
117 tail->next = next;
118 tail = next;
120 tail->next = NULL;
133 PLAN *expr; /* pointer to next expression */
155 tail->next = expr;
158 tail->next = NULL;
170 PLAN *next; /* next node being processed */
175 tail = result = next = NULL;
177 while ((next = yanknode(&plan)) != NULL) {
182 if (next->type == N_EXPR)
183 next->p_data[0] = not_squish(next->p_data[0]);
186 * if we encounter a not, then snag the next node and place
190 if (next->type == N_NOT) {
205 next = node;
207 next->p_data[0] = node;
212 tail = result = next;
214 tail->next = next;
215 tail = next;
217 tail->next = NULL;
229 PLAN *next; /* next node being processed */
233 tail = result = next = NULL;
235 while ((next = yanknode(&plan)) != NULL) {
240 if (next->type == N_EXPR)
241 next->p_data[0] = or_squish(next->p_data[0]);
244 if (next->type == N_NOT)
245 next->p_data[0] = or_squish(next->p_data[0]);
252 if (next->type == N_OR) {
255 next->p_data[0] = result;
256 next->p_data[1] = or_squish(plan);
257 if (next->p_data[1] == NULL)
259 return (next);
264 tail = result = next;
266 tail->next = next;
267 tail = next;
269 tail->next = NULL;