MCPcopy Create free account
hub / github.com/Meituan-Dianping/SQLAdvisor / pop

Function pop

dbug/dbug_analyze.c:155–176  ·  view source on GitHub ↗
(name_pos, time_entered, child_time)

Source from the content-addressed store, hash-verified

153 */
154
155unsigned int pop (name_pos, time_entered, child_time)
156register unsigned int *name_pos;
157register unsigned long *time_entered;
158register unsigned long *child_time;
159{
160 register struct stack_t *temp;
161 register unsigned int rtnval;
162
163 DBUG_ENTER ("pop");
164
165 if (stacktop < 1) {
166 rtnval = 0;
167 } else {
168 temp = &fn_stack[stacktop];
169 *name_pos = temp->pos;
170 *time_entered = temp->time;
171 *child_time = temp->children;
172 DBUG_PRINT ("pop", ("%d %lu %lu",*name_pos,*time_entered,*child_time));
173 rtnval = stacktop--;
174 }
175 DBUG_RETURN (rtnval);
176}
177
178/*
179 * We keep the function info in another array (serves as a simple

Callers 2

popMethod · 0.85
processFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected