Lines Matching refs:top
28 stack->top = 0; in zend_stack_init()
36 if (stack->top >= stack->max) { in zend_stack_push()
40 memcpy(ZEND_STACK_ELEMENT(stack, stack->top), element, stack->size); in zend_stack_push()
41 return stack->top++; in zend_stack_push()
47 if (stack->top > 0) { in zend_stack_top()
48 return ZEND_STACK_ELEMENT(stack, stack->top - 1); in zend_stack_top()
57 --stack->top; in zend_stack_del_top()
74 return stack->top == 0; in zend_stack_is_empty()
95 return stack->top; in zend_stack_count()
105 for (i=stack->top-1; i>=0; i--) { in zend_stack_apply()
112 for (i=0; i<stack->top; i++) { in zend_stack_apply()
128 for (i=stack->top-1; i>=0; i--) { in zend_stack_apply_with_argument()
135 for (i=0; i<stack->top; i++) { in zend_stack_apply_with_argument()
149 for (i = 0; i < stack->top; i++) { in zend_stack_clean()
158 stack->top = stack->max = 0; in zend_stack_clean()