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

Function push

dbug/dbug_analyze.c:129–147  ·  view source on GitHub ↗
(name_pos, time_entered)

Source from the content-addressed store, hash-verified

127 */
128
129void push (name_pos, time_entered)
130register unsigned int name_pos;
131register unsigned long time_entered;
132{
133 register struct stack_t *t;
134
135 DBUG_ENTER("push");
136 if (++stacktop > STACKSIZ) {
137 fprintf (DBUG_FILE,"%s: stack overflow (%s:%d)\n",
138 my_name, __FILE__, __LINE__);
139 exit (EX_SOFTWARE);
140 }
141 DBUG_PRINT ("push", ("%d %ld",name_pos,time_entered));
142 t = &fn_stack[stacktop];
143 t -> pos = name_pos;
144 t -> time = time_entered;
145 t -> children = 0;
146 DBUG_VOID_RETURN;
147}
148
149/*
150 * Pop - pop the top item off the stack, assigning the field values

Callers 1

processFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected