* push new one in polish notation reverse view */
| 133 | * push new one in polish notation reverse view |
| 134 | */ |
| 135 | static void |
| 136 | pushquery(WORKSTATE *state, int32 type, int32 val) |
| 137 | { |
| 138 | NODE *tmp = (NODE *) palloc(sizeof(NODE)); |
| 139 | |
| 140 | tmp->type = type; |
| 141 | tmp->val = val; |
| 142 | tmp->next = state->str; |
| 143 | state->str = tmp; |
| 144 | state->num++; |
| 145 | } |
| 146 | |
| 147 | #define STACKDEPTH 16 |
| 148 |