Lines Matching refs:top
94 int top, max; member
173 stack->top = 0; in wddx_stack_init()
187 if (stack->top >= stack->max) { /* we need to allocate more memory */ in wddx_stack_push()
191 stack->elements[stack->top] = (void *) emalloc(size); in wddx_stack_push()
192 memcpy(stack->elements[stack->top], element, size); in wddx_stack_push()
193 return stack->top++; in wddx_stack_push()
201 if (stack->top > 0) { in wddx_stack_top()
202 *element = stack->elements[stack->top - 1]; in wddx_stack_top()
215 if (stack->top == 0) { in wddx_stack_is_empty()
230 for (i = 0; i < stack->top; i++) { in wddx_stack_destroy()
884 if (stack->top == 0) { in php_wddx_pop_element()
896 if (stack->top > 1) { in php_wddx_pop_element()
897 stack->top--; in php_wddx_pop_element()
933 if (stack->top > 1) { in php_wddx_pop_element()
934 stack->top--; in php_wddx_pop_element()
1012 stack->top--; in php_wddx_pop_element()
1109 if (stack.top == 1) { in php_wddx_deserialize_ex()