version 1.5, 1999/12/04 22:42:32 |
version 1.6, 2001/11/19 19:02:13 |
|
|
yankexpr(planp) |
yankexpr(planp) |
PLAN **planp; /* pointer to top of plan (modified) */ |
PLAN **planp; /* pointer to top of plan (modified) */ |
{ |
{ |
register PLAN *next; /* temp node holding subexpression results */ |
PLAN *next; /* temp node holding subexpression results */ |
PLAN *node; /* pointer to returned node or expression */ |
PLAN *node; /* pointer to returned node or expression */ |
PLAN *tail; /* pointer to tail of subplan */ |
PLAN *tail; /* pointer to tail of subplan */ |
PLAN *subplan; /* pointer to head of ( ) expression */ |
PLAN *subplan; /* pointer to head of ( ) expression */ |
|
|
paren_squish(plan) |
paren_squish(plan) |
PLAN *plan; /* plan with ( ) nodes */ |
PLAN *plan; /* plan with ( ) nodes */ |
{ |
{ |
register PLAN *expr; /* pointer to next expression */ |
PLAN *expr; /* pointer to next expression */ |
register PLAN *tail; /* pointer to tail of result plan */ |
PLAN *tail; /* pointer to tail of result plan */ |
PLAN *result; /* pointer to head of result plan */ |
PLAN *result; /* pointer to head of result plan */ |
|
|
result = tail = NULL; |
result = tail = NULL; |
|
|
not_squish(plan) |
not_squish(plan) |
PLAN *plan; /* plan to process */ |
PLAN *plan; /* plan to process */ |
{ |
{ |
register PLAN *next; /* next node being processed */ |
PLAN *next; /* next node being processed */ |
register PLAN *node; /* temporary node used in N_NOT processing */ |
PLAN *node; /* temporary node used in N_NOT processing */ |
register PLAN *tail; /* pointer to tail of result plan */ |
PLAN *tail; /* pointer to tail of result plan */ |
PLAN *result; /* pointer to head of result plan */ |
PLAN *result; /* pointer to head of result plan */ |
|
|
tail = result = next = NULL; |
tail = result = next = NULL; |
|
|
or_squish(plan) |
or_squish(plan) |
PLAN *plan; /* plan with ors to be squished */ |
PLAN *plan; /* plan with ors to be squished */ |
{ |
{ |
register PLAN *next; /* next node being processed */ |
PLAN *next; /* next node being processed */ |
register PLAN *tail; /* pointer to tail of result plan */ |
PLAN *tail; /* pointer to tail of result plan */ |
PLAN *result; /* pointer to head of result plan */ |
PLAN *result; /* pointer to head of result plan */ |
|
|
tail = result = next = NULL; |
tail = result = next = NULL; |