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

Function conditional_stack_poke

src/fe_utils/conditional.c:105–112  ·  view source on GitHub ↗

* Change the state of the topmost branch. * Returns false if there was no branch state to set. */

Source from the content-addressed store, hash-verified

103 * Returns false if there was no branch state to set.
104 */
105bool
106conditional_stack_poke(ConditionalStack cstack, ifState new_state)
107{
108 if (conditional_stack_empty(cstack))
109 return false;
110 cstack->head->if_state = new_state;
111 return true;
112}
113
114/*
115 * True if there are no active \if-blocks.

Callers 6

exec_command_ifFunction · 0.85
exec_command_elifFunction · 0.85
exec_command_elseFunction · 0.85
advanceConnectionStateFunction · 0.85
executeMetaCommandFunction · 0.85
CheckConditionalFunction · 0.85

Calls 1

conditional_stack_emptyFunction · 0.85

Tested by

no test coverage detected