* Create a new conditional branch. */
| 38 | * Create a new conditional branch. |
| 39 | */ |
| 40 | void |
| 41 | conditional_stack_push(ConditionalStack cstack, ifState new_state) |
| 42 | { |
| 43 | IfStackElem *p = (IfStackElem *) pg_malloc(sizeof(IfStackElem)); |
| 44 | |
| 45 | p->if_state = new_state; |
| 46 | p->query_len = -1; |
| 47 | p->paren_depth = -1; |
| 48 | p->next = cstack->head; |
| 49 | cstack->head = p; |
| 50 | } |
| 51 | |
| 52 | /* |
| 53 | * Destroy the topmost conditional branch. |
no test coverage detected