Lines Matching refs:elements
29 stack->elements = NULL; in zend_stack_init()
36 stack->elements = (void **) erealloc(stack->elements, in zend_stack_push()
38 if (!stack->elements) { in zend_stack_push()
42 stack->elements[stack->top] = (void *) emalloc(size); in zend_stack_push()
43 memcpy(stack->elements[stack->top], element, size); in zend_stack_push()
51 *element = stack->elements[stack->top - 1]; in zend_stack_top()
63 efree(stack->elements[--stack->top]); in zend_stack_del_top()
95 if (stack->elements) { in zend_stack_destroy()
97 efree(stack->elements[i]); in zend_stack_destroy()
99 efree(stack->elements); in zend_stack_destroy()
100 stack->elements = NULL; in zend_stack_destroy()
109 return stack->elements; in zend_stack_base()
126 if (apply_function(stack->elements[i])) { in zend_stack_apply()
133 if (apply_function(stack->elements[i])) { in zend_stack_apply()
149 if (apply_function(stack->elements[i], arg)) { in zend_stack_apply_with_argument()
156 if (apply_function(stack->elements[i], arg)) { in zend_stack_apply_with_argument()