MCPcopy Create free account
hub / github.com/apache/cloudberry / conditional_stack_pop

Function conditional_stack_pop

src/fe_utils/conditional.c:56–66  ·  view source on GitHub ↗

* Destroy the topmost conditional branch. * Returns false if there was no branch to end. */

Source from the content-addressed store, hash-verified

54 * Returns false if there was no branch to end.
55 */
56bool
57conditional_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.

Callers 7

HandleSlashCmdsFunction · 0.85
exec_command_endifFunction · 0.85
MainLoopFunction · 0.85
advanceConnectionStateFunction · 0.85
executeMetaCommandFunction · 0.85
CheckConditionalFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected