* Destroy the topmost conditional branch. * Returns false if there was no branch to end. */
| 54 | * Returns false if there was no branch to end. |
| 55 | */ |
| 56 | bool |
| 57 | conditional_stack_pop(ConditionalStack cstack) |
| 58 | { |
| 59 | IfStackElem *p = cstack->head; |
| 60 | |
| 61 | if (!p) |
| 62 | return false; |
| 63 | cstack->head = cstack->head->next; |
| 64 | free(p); |
| 65 | return true; |
| 66 | } |
| 67 | |
| 68 | /* |
| 69 | * Returns current stack depth, for debugging purposes. |
no outgoing calls
no test coverage detected