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

Function conditional_stack_peek

src/fe_utils/conditional.c:93–99  ·  view source on GitHub ↗

* Fetch the current state of the top of the stack. */

Source from the content-addressed store, hash-verified

91 * Fetch the current state of the top of the stack.
92 */
93ifState
94conditional_stack_peek(ConditionalStack cstack)
95{
96 if (conditional_stack_empty(cstack))
97 return IFSTATE_NONE;
98 return cstack->head->if_state;
99}
100
101/*
102 * Change the state of the topmost branch.

Callers 7

conditional_activeFunction · 0.85
exec_command_elifFunction · 0.85
exec_command_elseFunction · 0.85
exec_command_endifFunction · 0.85
advanceConnectionStateFunction · 0.85
executeMetaCommandFunction · 0.85
CheckConditionalFunction · 0.85

Calls 1

conditional_stack_emptyFunction · 0.85

Tested by

no test coverage detected