stack 1014 Zend/zend.c #define SAVE_STACK(stack) do { \ stack 1015 Zend/zend.c if (CG(stack).top) { \ stack 1016 Zend/zend.c memcpy(&stack, &CG(stack), sizeof(zend_stack)); \ stack 1017 Zend/zend.c CG(stack).top = CG(stack).max = 0; \ stack 1018 Zend/zend.c CG(stack).elements = NULL; \ stack 1020 Zend/zend.c stack.top = 0; \ stack 1024 Zend/zend.c #define RESTORE_STACK(stack) do { \ stack 1025 Zend/zend.c if (stack.top) { \ stack 1026 Zend/zend.c zend_stack_destroy(&CG(stack)); \ stack 1027 Zend/zend.c memcpy(&CG(stack), &stack, sizeof(zend_stack)); \ stack 175 Zend/zend_execute.h #define ZEND_VM_STACK_ELEMETS(stack) \ stack 176 Zend/zend_execute.h ((void**)(((char*)(stack)) + ZEND_MM_ALIGNED_SIZE(sizeof(struct _zend_vm_stack)))) stack 202 Zend/zend_execute.h zend_vm_stack stack = EG(argument_stack); stack 204 Zend/zend_execute.h while (stack != NULL) { stack 205 Zend/zend_execute.h zend_vm_stack p = stack->prev; stack 206 Zend/zend_execute.h efree(stack); stack 207 Zend/zend_execute.h stack = p; stack 80 Zend/zend_generators.c void **ptr = generator->stack->top - 1; stack 162 Zend/zend_generators.c efree(generator->stack); stack 317 Zend/zend_generators.c generator->stack = EG(argument_stack); stack 370 Zend/zend_generators.c EG(argument_stack) = generator->stack; stack 45 Zend/zend_generators.h zend_vm_stack stack; stack 28 Zend/zend_ptr_stack.c ZEND_API void zend_ptr_stack_init_ex(zend_ptr_stack *stack, zend_bool persistent) stack 30 Zend/zend_ptr_stack.c stack->top_element = stack->elements = NULL; stack 31 Zend/zend_ptr_stack.c stack->top = stack->max = 0; stack 32 Zend/zend_ptr_stack.c stack->persistent = persistent; stack 35 Zend/zend_ptr_stack.c ZEND_API void zend_ptr_stack_init(zend_ptr_stack *stack) stack 37 Zend/zend_ptr_stack.c zend_ptr_stack_init_ex(stack, 0); stack 41 Zend/zend_ptr_stack.c ZEND_API void zend_ptr_stack_n_push(zend_ptr_stack *stack, int count, ...) stack 46 Zend/zend_ptr_stack.c ZEND_PTR_STACK_RESIZE_IF_NEEDED(stack, count) stack 51 Zend/zend_ptr_stack.c stack->top++; stack 52 Zend/zend_ptr_stack.c *(stack->top_element++) = elem; stack 59 Zend/zend_ptr_stack.c ZEND_API void zend_ptr_stack_n_pop(zend_ptr_stack *stack, int count, ...) stack 67 Zend/zend_ptr_stack.c *elem = *(--stack->top_element); stack 68 Zend/zend_ptr_stack.c stack->top--; stack 76 Zend/zend_ptr_stack.c ZEND_API void zend_ptr_stack_destroy(zend_ptr_stack *stack) stack 78 Zend/zend_ptr_stack.c if (stack->elements) { stack 79 Zend/zend_ptr_stack.c pefree(stack->elements, stack->persistent); stack 84 Zend/zend_ptr_stack.c ZEND_API void zend_ptr_stack_apply(zend_ptr_stack *stack, void (*func)(void *)) stack 86 Zend/zend_ptr_stack.c int i = stack->top; stack 89 Zend/zend_ptr_stack.c func(stack->elements[i]); stack 94 Zend/zend_ptr_stack.c ZEND_API void zend_ptr_stack_clean(zend_ptr_stack *stack, void (*func)(void *), zend_bool free_elements) stack 96 Zend/zend_ptr_stack.c zend_ptr_stack_apply(stack, func); stack 98 Zend/zend_ptr_stack.c int i = stack->top; stack 101 Zend/zend_ptr_stack.c pefree(stack->elements[i], stack->persistent); stack 104 Zend/zend_ptr_stack.c stack->top = 0; stack 105 Zend/zend_ptr_stack.c stack->top_element = stack->elements; stack 109 Zend/zend_ptr_stack.c ZEND_API int zend_ptr_stack_num_elements(zend_ptr_stack *stack) stack 111 Zend/zend_ptr_stack.c return stack->top; stack 36 Zend/zend_ptr_stack.h ZEND_API void zend_ptr_stack_init(zend_ptr_stack *stack); stack 37 Zend/zend_ptr_stack.h ZEND_API void zend_ptr_stack_init_ex(zend_ptr_stack *stack, zend_bool persistent); stack 38 Zend/zend_ptr_stack.h ZEND_API void zend_ptr_stack_n_push(zend_ptr_stack *stack, int count, ...); stack 39 Zend/zend_ptr_stack.h ZEND_API void zend_ptr_stack_n_pop(zend_ptr_stack *stack, int count, ...); stack 40 Zend/zend_ptr_stack.h ZEND_API void zend_ptr_stack_destroy(zend_ptr_stack *stack); stack 41 Zend/zend_ptr_stack.h ZEND_API void zend_ptr_stack_apply(zend_ptr_stack *stack, void (*func)(void *)); stack 42 Zend/zend_ptr_stack.h ZEND_API void zend_ptr_stack_clean(zend_ptr_stack *stack, void (*func)(void *), zend_bool free_elements); stack 43 Zend/zend_ptr_stack.h ZEND_API int zend_ptr_stack_num_elements(zend_ptr_stack *stack); stack 46 Zend/zend_ptr_stack.h #define ZEND_PTR_STACK_RESIZE_IF_NEEDED(stack, count) \ stack 47 Zend/zend_ptr_stack.h if (stack->top+count > stack->max) { \ stack 50 Zend/zend_ptr_stack.h stack->max += PTR_STACK_BLOCK_SIZE; \ stack 51 Zend/zend_ptr_stack.h } while (stack->top+count > stack->max); \ stack 52 Zend/zend_ptr_stack.h stack->elements = (void **) perealloc(stack->elements, (sizeof(void *) * (stack->max)), stack->persistent); \ stack 53 Zend/zend_ptr_stack.h stack->top_element = stack->elements+stack->top; \ stack 58 Zend/zend_ptr_stack.h static zend_always_inline void zend_ptr_stack_3_push(zend_ptr_stack *stack, void *a, void *b, void *c) stack 62 Zend/zend_ptr_stack.h ZEND_PTR_STACK_RESIZE_IF_NEEDED(stack, ZEND_PTR_STACK_NUM_ARGS) stack 64 Zend/zend_ptr_stack.h stack->top += ZEND_PTR_STACK_NUM_ARGS; stack 65 Zend/zend_ptr_stack.h *(stack->top_element++) = a; stack 66 Zend/zend_ptr_stack.h *(stack->top_element++) = b; stack 67 Zend/zend_ptr_stack.h *(stack->top_element++) = c; stack 72 Zend/zend_ptr_stack.h static zend_always_inline void zend_ptr_stack_2_push(zend_ptr_stack *stack, void *a, void *b) stack 76 Zend/zend_ptr_stack.h ZEND_PTR_STACK_RESIZE_IF_NEEDED(stack, ZEND_PTR_STACK_NUM_ARGS) stack 78 Zend/zend_ptr_stack.h stack->top += ZEND_PTR_STACK_NUM_ARGS; stack 79 Zend/zend_ptr_stack.h *(stack->top_element++) = a; stack 80 Zend/zend_ptr_stack.h *(stack->top_element++) = b; stack 85 Zend/zend_ptr_stack.h static zend_always_inline void zend_ptr_stack_3_pop(zend_ptr_stack *stack, void **a, void **b, void **c) stack 87 Zend/zend_ptr_stack.h *a = *(--stack->top_element); stack 88 Zend/zend_ptr_stack.h *b = *(--stack->top_element); stack 89 Zend/zend_ptr_stack.h *c = *(--stack->top_element); stack 90 Zend/zend_ptr_stack.h stack->top -= 3; stack 93 Zend/zend_ptr_stack.h static zend_always_inline void zend_ptr_stack_2_pop(zend_ptr_stack *stack, void **a, void **b) stack 95 Zend/zend_ptr_stack.h *a = *(--stack->top_element); stack 96 Zend/zend_ptr_stack.h *b = *(--stack->top_element); stack 97 Zend/zend_ptr_stack.h stack->top -= 2; stack 100 Zend/zend_ptr_stack.h static zend_always_inline void zend_ptr_stack_push(zend_ptr_stack *stack, void *ptr) stack 102 Zend/zend_ptr_stack.h ZEND_PTR_STACK_RESIZE_IF_NEEDED(stack, 1) stack 104 Zend/zend_ptr_stack.h stack->top++; stack 105 Zend/zend_ptr_stack.h *(stack->top_element++) = ptr; stack 108 Zend/zend_ptr_stack.h static zend_always_inline void *zend_ptr_stack_pop(zend_ptr_stack *stack) stack 110 Zend/zend_ptr_stack.h stack->top--; stack 111 Zend/zend_ptr_stack.h return *(--stack->top_element); stack 114 Zend/zend_ptr_stack.h static inline void *zend_ptr_stack_top(zend_ptr_stack *stack) stack 116 Zend/zend_ptr_stack.h return stack->elements[stack->top - 1]; stack 25 Zend/zend_stack.c ZEND_API int zend_stack_init(zend_stack *stack) stack 27 Zend/zend_stack.c stack->top = 0; stack 28 Zend/zend_stack.c stack->max = 0; stack 29 Zend/zend_stack.c stack->elements = NULL; stack 33 Zend/zend_stack.c ZEND_API int zend_stack_push(zend_stack *stack, const void *element, int size) stack 35 Zend/zend_stack.c if (stack->top >= stack->max) { /* we need to allocate more memory */ stack 36 Zend/zend_stack.c stack->elements = (void **) erealloc(stack->elements, stack 37 Zend/zend_stack.c (sizeof(void **) * (stack->max += STACK_BLOCK_SIZE))); stack 38 Zend/zend_stack.c if (!stack->elements) { stack 42 Zend/zend_stack.c stack->elements[stack->top] = (void *) emalloc(size); stack 43 Zend/zend_stack.c memcpy(stack->elements[stack->top], element, size); stack 44 Zend/zend_stack.c return stack->top++; stack 48 Zend/zend_stack.c ZEND_API int zend_stack_top(const zend_stack *stack, void **element) stack 50 Zend/zend_stack.c if (stack->top > 0) { stack 51 Zend/zend_stack.c *element = stack->elements[stack->top - 1]; stack 60 Zend/zend_stack.c ZEND_API int zend_stack_del_top(zend_stack *stack) stack 62 Zend/zend_stack.c if (stack->top > 0) { stack 63 Zend/zend_stack.c efree(stack->elements[--stack->top]); stack 69 Zend/zend_stack.c ZEND_API int zend_stack_int_top(const zend_stack *stack) stack 73 Zend/zend_stack.c if (zend_stack_top(stack, (void **) &e) == FAILURE) { stack 81 Zend/zend_stack.c ZEND_API int zend_stack_is_empty(const zend_stack *stack) stack 83 Zend/zend_stack.c if (stack->top == 0) { stack 91 Zend/zend_stack.c ZEND_API int zend_stack_destroy(zend_stack *stack) stack 95 Zend/zend_stack.c if (stack->elements) { stack 96 Zend/zend_stack.c for (i = 0; i < stack->top; i++) { stack 97 Zend/zend_stack.c efree(stack->elements[i]); stack 99 Zend/zend_stack.c efree(stack->elements); stack 100 Zend/zend_stack.c stack->elements = NULL; stack 107 Zend/zend_stack.c ZEND_API void **zend_stack_base(const zend_stack *stack) stack 109 Zend/zend_stack.c return stack->elements; stack 113 Zend/zend_stack.c ZEND_API int zend_stack_count(const zend_stack *stack) stack 115 Zend/zend_stack.c return stack->top; stack 119 Zend/zend_stack.c ZEND_API void zend_stack_apply(zend_stack *stack, int type, int (*apply_function)(void *element)) stack 125 Zend/zend_stack.c for (i=stack->top-1; i>=0; i--) { stack 126 Zend/zend_stack.c if (apply_function(stack->elements[i])) { stack 132 Zend/zend_stack.c for (i=0; i<stack->top; i++) { stack 133 Zend/zend_stack.c if (apply_function(stack->elements[i])) { stack 142 Zend/zend_stack.c ZEND_API void zend_stack_apply_with_argument(zend_stack *stack, int type, int (*apply_function)(void *element, void *arg), void *arg) stack 148 Zend/zend_stack.c for (i=stack->top-1; i>=0; i--) { stack 149 Zend/zend_stack.c if (apply_function(stack->elements[i], arg)) { stack 155 Zend/zend_stack.c for (i=0; i<stack->top; i++) { stack 156 Zend/zend_stack.c if (apply_function(stack->elements[i], arg)) { stack 34 Zend/zend_stack.h ZEND_API int zend_stack_init(zend_stack *stack); stack 35 Zend/zend_stack.h ZEND_API int zend_stack_push(zend_stack *stack, const void *element, int size); stack 36 Zend/zend_stack.h ZEND_API int zend_stack_top(const zend_stack *stack, void **element); stack 37 Zend/zend_stack.h ZEND_API int zend_stack_del_top(zend_stack *stack); stack 38 Zend/zend_stack.h ZEND_API int zend_stack_int_top(const zend_stack *stack); stack 39 Zend/zend_stack.h ZEND_API int zend_stack_is_empty(const zend_stack *stack); stack 40 Zend/zend_stack.h ZEND_API int zend_stack_destroy(zend_stack *stack); stack 41 Zend/zend_stack.h ZEND_API void **zend_stack_base(const zend_stack *stack); stack 42 Zend/zend_stack.h ZEND_API int zend_stack_count(const zend_stack *stack); stack 43 Zend/zend_stack.h ZEND_API void zend_stack_apply(zend_stack *stack, int type, int (*apply_function)(void *element)); stack 44 Zend/zend_stack.h ZEND_API void zend_stack_apply_with_argument(zend_stack *stack, int type, int (*apply_function)(void *element, void *arg), void *arg); stack 1858 ext/gd/libgd/gd.c if (sp<stack+FILL_MAX && Y+(DY)>=0 && Y+(DY)<wy2) \ stack 1876 ext/gd/libgd/gd.c struct seg *stack = NULL; stack 1917 ext/gd/libgd/gd.c stack = (struct seg *)safe_emalloc(sizeof(struct seg), ((int)(im->sy*im->sx)/4), 1); stack 1918 ext/gd/libgd/gd.c sp = stack; stack 1924 ext/gd/libgd/gd.c while (sp>stack) { stack 1955 ext/gd/libgd/gd.c efree(stack); stack 1967 ext/gd/libgd/gd.c struct seg *stack; stack 1984 ext/gd/libgd/gd.c stack = (struct seg *)safe_emalloc(sizeof(struct seg), ((int)(im->sy*im->sx)/4), 1); stack 1985 ext/gd/libgd/gd.c sp = stack; stack 1993 ext/gd/libgd/gd.c while (sp>stack) { stack 2031 ext/gd/libgd/gd.c efree(stack); stack 89 ext/gd/libgd/gd_gif_in.c int stack[STACK_SIZE], *sp; stack 451 ext/gd/libgd/gd_gif_in.c sd->sp = sd->stack; stack 463 ext/gd/libgd/gd_gif_in.c if (sd->sp > sd->stack) stack 477 ext/gd/libgd/gd_gif_in.c sd->sp = sd->stack; stack 497 ext/gd/libgd/gd_gif_in.c if (sd->sp == (sd->stack + STACK_SIZE)) { stack 508 ext/gd/libgd/gd_gif_in.c if (sd->sp == (sd->stack + STACK_SIZE)) { stack 534 ext/gd/libgd/gd_gif_in.c if (sd->sp > sd->stack) stack 209 ext/json/JSON_parser.c jp->stack[jp->top] = mode; stack 221 ext/json/JSON_parser.c if (jp->top < 0 || jp->stack[jp->top] != mode) { stack 249 ext/json/JSON_parser.c jp->stack = (int*)ecalloc(depth, sizeof(int)); stack 265 ext/json/JSON_parser.c efree((void*)jp->stack); stack 396 ext/json/JSON_parser.c int up_mode = jp->stack[up]; stack 545 ext/json/JSON_parser.c if (type != -1 && jp->stack[jp->top] == MODE_OBJECT) stack 573 ext/json/JSON_parser.c if (type != -1 && jp->stack[jp->top] == MODE_ARRAY) stack 655 ext/json/JSON_parser.c switch (jp->stack[jp->top]) { stack 686 ext/json/JSON_parser.c (jp->stack[jp->top] == MODE_OBJECT || stack 687 ext/json/JSON_parser.c jp->stack[jp->top] == MODE_ARRAY)) stack 693 ext/json/JSON_parser.c switch (jp->stack[jp->top]) { stack 17 ext/json/JSON_parser.h int* stack; stack 3516 ext/mbstring/mbstring.c zval ***args, ***stack, **var, **hash_entry, **zfrom_enc; stack 3567 ext/mbstring/mbstring.c stack = (zval ***)safe_emalloc(stack_max, sizeof(zval **), 0); stack 3583 ext/mbstring/mbstring.c var = stack[stack_level]; stack 3593 ext/mbstring/mbstring.c ptmp = erealloc(stack, sizeof(zval **)*stack_max); stack 3594 ext/mbstring/mbstring.c stack = (zval ***)ptmp; stack 3596 ext/mbstring/mbstring.c stack[stack_level] = var; stack 3625 ext/mbstring/mbstring.c efree(stack); stack 3650 ext/mbstring/mbstring.c stack = (zval ***)safe_emalloc(stack_max, sizeof(zval **), 0); stack 3664 ext/mbstring/mbstring.c var = stack[stack_level]; stack 3674 ext/mbstring/mbstring.c ptmp = erealloc(stack, sizeof(zval **)*stack_max); stack 3675 ext/mbstring/mbstring.c stack = (zval ***)ptmp; stack 3677 ext/mbstring/mbstring.c stack[stack_level] = var; stack 3712 ext/mbstring/mbstring.c efree(stack); stack 2076 ext/openssl/openssl.c STACK_OF(X509) *stack=NULL, *ret=NULL; stack 2081 ext/openssl/openssl.c if(!(stack = sk_X509_new_null())) { stack 2087 ext/openssl/openssl.c sk_X509_free(stack); stack 2093 ext/openssl/openssl.c sk_X509_free(stack); stack 2100 ext/openssl/openssl.c sk_X509_free(stack); stack 2108 ext/openssl/openssl.c sk_X509_push(stack,xi->x509); stack 2113 ext/openssl/openssl.c if(!sk_X509_num(stack)) { stack 2115 ext/openssl/openssl.c sk_X509_free(stack); stack 2118 ext/openssl/openssl.c ret=stack; stack 162 ext/pcre/pcrelib/pcre_jit_compile.c struct sljit_stack *stack; stack 2223 ext/pcre/pcrelib/pcre_jit_compile.c OP1(SLJIT_MOV, STACK_TOP, 0, SLJIT_MEM1(STACK_TOP), SLJIT_OFFSETOF(jit_arguments, stack)); stack 7535 ext/pcre/pcrelib/pcre_jit_compile.c int stack; /* Also contains the offset of control head. */ stack 7596 ext/pcre/pcrelib/pcre_jit_compile.c stack = 0; stack 7599 ext/pcre/pcrelib/pcre_jit_compile.c stack = 2; stack 7611 ext/pcre/pcrelib/pcre_jit_compile.c stack = 3; stack 7619 ext/pcre/pcrelib/pcre_jit_compile.c stack = 1; stack 7623 ext/pcre/pcrelib/pcre_jit_compile.c stack++; stack 7625 ext/pcre/pcrelib/pcre_jit_compile.c OP1(SLJIT_MOV, SLJIT_MEM1(STACK_TOP), STACK(stack), SLJIT_IMM, 1); stack 7628 ext/pcre/pcrelib/pcre_jit_compile.c stack--; stack 7629 ext/pcre/pcrelib/pcre_jit_compile.c OP1(SLJIT_MOV, SLJIT_MEM1(STACK_TOP), STACK(stack), TMP2, 0); stack 7649 ext/pcre/pcrelib/pcre_jit_compile.c stack = 0; stack 7653 ext/pcre/pcrelib/pcre_jit_compile.c stack = 1; stack 7657 ext/pcre/pcrelib/pcre_jit_compile.c OP1(SLJIT_MOV, SLJIT_MEM1(STACK_TOP), STACK(stack), TMP2, 0); stack 7658 ext/pcre/pcrelib/pcre_jit_compile.c stack++; stack 7662 ext/pcre/pcrelib/pcre_jit_compile.c OP1(SLJIT_MOV, SLJIT_MEM1(STACK_TOP), STACK(stack), STR_PTR, 0); stack 7663 ext/pcre/pcrelib/pcre_jit_compile.c stack++; stack 7665 ext/pcre/pcrelib/pcre_jit_compile.c OP1(SLJIT_MOV, SLJIT_MEM1(STACK_TOP), STACK(stack), TMP1, 0); stack 7667 ext/pcre/pcrelib/pcre_jit_compile.c stack -= 1 + (offset == 0); stack 7707 ext/pcre/pcrelib/pcre_jit_compile.c OP1(SLJIT_MOV, SLJIT_MEM1(SLJIT_SP), common->control_head_ptr, SLJIT_MEM1(STACK_TOP), STACK(stack)); stack 7738 ext/pcre/pcrelib/pcre_jit_compile.c OP1(SLJIT_MOV, SLJIT_MEM1(SLJIT_SP), common->control_head_ptr, SLJIT_MEM1(STACK_TOP), STACK(stack)); stack 10033 ext/pcre/pcrelib/pcre_jit_compile.c OP1(SLJIT_MOV, TMP2, 0, SLJIT_MEM1(TMP1), SLJIT_OFFSETOF(jit_arguments, stack)); stack 10245 ext/pcre/pcrelib/pcre_jit_compile.c OP1(SLJIT_MOV, TMP1, 0, SLJIT_MEM1(TMP1), SLJIT_OFFSETOF(jit_arguments, stack)); stack 10252 ext/pcre/pcrelib/pcre_jit_compile.c OP1(SLJIT_MOV, TMP1, 0, SLJIT_MEM1(TMP1), SLJIT_OFFSETOF(jit_arguments, stack)); stack 10405 ext/pcre/pcrelib/pcre_jit_compile.c arguments->stack = &local_stack; stack 10463 ext/pcre/pcrelib/pcre_jit_compile.c arguments.stack = (struct sljit_stack *)functions->callback(functions->userdata); stack 10465 ext/pcre/pcrelib/pcre_jit_compile.c arguments.stack = (struct sljit_stack *)functions->userdata; stack 10467 ext/pcre/pcrelib/pcre_jit_compile.c if (arguments.stack == NULL) stack 10487 ext/pcre/pcrelib/pcre_jit_compile.c int *offsets, int offset_count, pcre_jit_stack *stack) stack 10492 ext/pcre/pcrelib/pcre_jit_compile.c int *offsets, int offset_count, pcre16_jit_stack *stack) stack 10497 ext/pcre/pcrelib/pcre_jit_compile.c int *offsets, int offset_count, pcre32_jit_stack *stack) stack 10525 ext/pcre/pcrelib/pcre_jit_compile.c arguments.stack = (struct sljit_stack *)stack; stack 10619 ext/pcre/pcrelib/pcre_jit_compile.c pcre_jit_stack_free(pcre_jit_stack *stack) stack 10622 ext/pcre/pcrelib/pcre_jit_compile.c pcre16_jit_stack_free(pcre16_jit_stack *stack) stack 10625 ext/pcre/pcrelib/pcre_jit_compile.c pcre32_jit_stack_free(pcre32_jit_stack *stack) stack 10628 ext/pcre/pcrelib/pcre_jit_compile.c sljit_free_stack((struct sljit_stack *)stack, NULL); stack 10690 ext/pcre/pcrelib/pcre_jit_compile.c pcre_jit_stack_free(pcre_jit_stack *stack) stack 10693 ext/pcre/pcrelib/pcre_jit_compile.c pcre16_jit_stack_free(pcre16_jit_stack *stack) stack 10696 ext/pcre/pcrelib/pcre_jit_compile.c pcre32_jit_stack_free(pcre32_jit_stack *stack) stack 10699 ext/pcre/pcrelib/pcre_jit_compile.c (void)stack; stack 1152 ext/pcre/pcrelib/sljit/sljitLir.h SLJIT_API_FUNC_ATTRIBUTE void SLJIT_CALL sljit_free_stack(struct sljit_stack *stack, void *allocator_data); stack 1160 ext/pcre/pcrelib/sljit/sljitLir.h SLJIT_API_FUNC_ATTRIBUTE sljit_sw SLJIT_CALL sljit_stack_resize(struct sljit_stack *stack, sljit_uw new_limit); stack 205 ext/pcre/pcrelib/sljit/sljitUtils.c struct sljit_stack *stack; stack 236 ext/pcre/pcrelib/sljit/sljitUtils.c stack = (struct sljit_stack*)SLJIT_MALLOC(sizeof(struct sljit_stack), allocator_data); stack 237 ext/pcre/pcrelib/sljit/sljitUtils.c if (!stack) stack 243 ext/pcre/pcrelib/sljit/sljitUtils.c SLJIT_FREE(stack, allocator_data); stack 246 ext/pcre/pcrelib/sljit/sljitUtils.c stack->base = base.uw; stack 247 ext/pcre/pcrelib/sljit/sljitUtils.c stack->limit = stack->base; stack 248 ext/pcre/pcrelib/sljit/sljitUtils.c stack->max_limit = stack->base + max_limit; stack 249 ext/pcre/pcrelib/sljit/sljitUtils.c if (sljit_stack_resize(stack, stack->base + limit)) { stack 250 ext/pcre/pcrelib/sljit/sljitUtils.c sljit_free_stack(stack, allocator_data); stack 259 ext/pcre/pcrelib/sljit/sljitUtils.c SLJIT_FREE(stack, allocator_data); stack 266 ext/pcre/pcrelib/sljit/sljitUtils.c SLJIT_FREE(stack, allocator_data); stack 269 ext/pcre/pcrelib/sljit/sljitUtils.c stack->base = base.uw; stack 270 ext/pcre/pcrelib/sljit/sljitUtils.c stack->limit = stack->base + limit; stack 271 ext/pcre/pcrelib/sljit/sljitUtils.c stack->max_limit = stack->base + max_limit; stack 273 ext/pcre/pcrelib/sljit/sljitUtils.c stack->top = stack->base; stack 274 ext/pcre/pcrelib/sljit/sljitUtils.c return stack; stack 279 ext/pcre/pcrelib/sljit/sljitUtils.c SLJIT_API_FUNC_ATTRIBUTE void SLJIT_CALL sljit_free_stack(struct sljit_stack* stack, void *allocator_data) stack 283 ext/pcre/pcrelib/sljit/sljitUtils.c VirtualFree((void*)stack->base, 0, MEM_RELEASE); stack 285 ext/pcre/pcrelib/sljit/sljitUtils.c munmap((void*)stack->base, stack->max_limit - stack->base); stack 287 ext/pcre/pcrelib/sljit/sljitUtils.c SLJIT_FREE(stack, allocator_data); stack 290 ext/pcre/pcrelib/sljit/sljitUtils.c SLJIT_API_FUNC_ATTRIBUTE sljit_sw SLJIT_CALL sljit_stack_resize(struct sljit_stack* stack, sljit_uw new_limit) stack 295 ext/pcre/pcrelib/sljit/sljitUtils.c if ((new_limit > stack->max_limit) || (new_limit < stack->base)) stack 299 ext/pcre/pcrelib/sljit/sljitUtils.c aligned_old_limit = (stack->limit + sljit_page_align) & ~sljit_page_align; stack 310 ext/pcre/pcrelib/sljit/sljitUtils.c stack->limit = new_limit; stack 313 ext/pcre/pcrelib/sljit/sljitUtils.c if (new_limit >= stack->limit) { stack 314 ext/pcre/pcrelib/sljit/sljitUtils.c stack->limit = new_limit; stack 318 ext/pcre/pcrelib/sljit/sljitUtils.c aligned_old_limit = (stack->limit + sljit_page_align) & ~sljit_page_align; stack 327 ext/pcre/pcrelib/sljit/sljitUtils.c stack->limit = new_limit; stack 1826 ext/standard/array.c *stack, /* Input array */ stack 1832 ext/standard/array.c if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "a+", &stack, &args, &argc) == FAILURE) { stack 1841 ext/standard/array.c if (zend_hash_next_index_insert(Z_ARRVAL_P(stack), &new_var, sizeof(zval *), NULL) == FAILURE) { stack 1851 ext/standard/array.c RETVAL_LONG(zend_hash_num_elements(Z_ARRVAL_P(stack))); stack 1858 ext/standard/array.c zval *stack, /* Input stack */ stack 1864 ext/standard/array.c if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "a", &stack) == FAILURE) { stack 1868 ext/standard/array.c if (zend_hash_num_elements(Z_ARRVAL_P(stack)) == 0) { stack 1874 ext/standard/array.c zend_hash_internal_pointer_end(Z_ARRVAL_P(stack)); stack 1876 ext/standard/array.c zend_hash_internal_pointer_reset(Z_ARRVAL_P(stack)); stack 1878 ext/standard/array.c zend_hash_get_current_data(Z_ARRVAL_P(stack), (void **)&val); stack 1882 ext/standard/array.c zend_hash_get_current_key_ex(Z_ARRVAL_P(stack), &key, &key_len, &index, 0, NULL); stack 1883 ext/standard/array.c if (key && Z_ARRVAL_P(stack) == &EG(symbol_table)) { stack 1886 ext/standard/array.c zend_hash_del_key_or_index(Z_ARRVAL_P(stack), key, key_len, index, (key) ? HASH_DEL_KEY : HASH_DEL_INDEX); stack 1891 ext/standard/array.c zend_hash_reindex(Z_ARRVAL_P(stack), 1); stack 1892 ext/standard/array.c } else if (!key_len && Z_ARRVAL_P(stack)->nNextFreeElement > 0 && index >= Z_ARRVAL_P(stack)->nNextFreeElement - 1) { stack 1893 ext/standard/array.c Z_ARRVAL_P(stack)->nNextFreeElement = Z_ARRVAL_P(stack)->nNextFreeElement - 1; stack 1896 ext/standard/array.c zend_hash_internal_pointer_reset(Z_ARRVAL_P(stack)); stack 1921 ext/standard/array.c *stack; /* Input stack */ stack 1924 ext/standard/array.c if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "a+", &stack, &args, &argc) == FAILURE) { stack 1929 ext/standard/array.c php_splice(Z_ARRVAL_P(stack), 0, 0, args, argc, NULL TSRMLS_CC); stack 1933 ext/standard/array.c RETVAL_LONG(zend_hash_num_elements(Z_ARRVAL_P(stack))); stack 363 ext/standard/basic_functions.c ZEND_ARG_INFO(1, stack) /* ARRAY_INFO(1, stack, 0) */ stack 368 ext/standard/basic_functions.c ZEND_ARG_INFO(1, stack) /* ARRAY_INFO(1, stack, 0) */ stack 372 ext/standard/basic_functions.c ZEND_ARG_INFO(1, stack) /* ARRAY_INFO(1, stack, 0) */ stack 376 ext/standard/basic_functions.c ZEND_ARG_INFO(1, stack) /* ARRAY_INFO(1, stack, 0) */ stack 69 ext/wddx/wddx.c if (stack->varname) { \ stack 70 ext/wddx/wddx.c ent.varname = estrdup(stack->varname); \ stack 71 ext/wddx/wddx.c efree(stack->varname); \ stack 72 ext/wddx/wddx.c stack->varname = NULL; \ stack 173 ext/wddx/wddx.c static int wddx_stack_init(wddx_stack *stack) stack 175 ext/wddx/wddx.c stack->top = 0; stack 176 ext/wddx/wddx.c stack->elements = (void **) safe_emalloc(sizeof(void **), STACK_BLOCK_SIZE, 0); stack 177 ext/wddx/wddx.c stack->max = STACK_BLOCK_SIZE; stack 178 ext/wddx/wddx.c stack->varname = NULL; stack 179 ext/wddx/wddx.c stack->done = 0; stack 187 ext/wddx/wddx.c static int wddx_stack_push(wddx_stack *stack, void *element, int size) stack 189 ext/wddx/wddx.c if (stack->top >= stack->max) { /* we need to allocate more memory */ stack 190 ext/wddx/wddx.c stack->elements = (void **) erealloc(stack->elements, stack 191 ext/wddx/wddx.c (sizeof(void **) * (stack->max += STACK_BLOCK_SIZE))); stack 193 ext/wddx/wddx.c stack->elements[stack->top] = (void *) emalloc(size); stack 194 ext/wddx/wddx.c memcpy(stack->elements[stack->top], element, size); stack 195 ext/wddx/wddx.c return stack->top++; stack 201 ext/wddx/wddx.c static int wddx_stack_top(wddx_stack *stack, void **element) stack 203 ext/wddx/wddx.c if (stack->top > 0) { stack 204 ext/wddx/wddx.c *element = stack->elements[stack->top - 1]; stack 215 ext/wddx/wddx.c static int wddx_stack_is_empty(wddx_stack *stack) stack 217 ext/wddx/wddx.c if (stack->top == 0) { stack 227 ext/wddx/wddx.c static int wddx_stack_destroy(wddx_stack *stack) stack 231 ext/wddx/wddx.c if (stack->elements) { stack 232 ext/wddx/wddx.c for (i = 0; i < stack->top; i++) { stack 233 ext/wddx/wddx.c if (((st_entry *)stack->elements[i])->data) { stack 234 ext/wddx/wddx.c zval_ptr_dtor(&((st_entry *)stack->elements[i])->data); stack 236 ext/wddx/wddx.c if (((st_entry *)stack->elements[i])->varname) { stack 237 ext/wddx/wddx.c efree(((st_entry *)stack->elements[i])->varname); stack 239 ext/wddx/wddx.c efree(stack->elements[i]); stack 241 ext/wddx/wddx.c efree(stack->elements); stack 740 ext/wddx/wddx.c wddx_stack *stack = (wddx_stack *)user_data; stack 759 ext/wddx/wddx.c wddx_stack_push((wddx_stack *)stack, &ent, sizeof(st_entry)); stack 769 ext/wddx/wddx.c wddx_stack_push((wddx_stack *)stack, &ent, sizeof(st_entry)); stack 790 ext/wddx/wddx.c wddx_stack_push((wddx_stack *)stack, &ent, sizeof(st_entry)); stack 802 ext/wddx/wddx.c wddx_stack_push((wddx_stack *)stack, &ent, sizeof(st_entry)); stack 815 ext/wddx/wddx.c wddx_stack_push((wddx_stack *)stack, &ent, sizeof(st_entry)); stack 823 ext/wddx/wddx.c wddx_stack_push((wddx_stack *)stack, &ent, sizeof(st_entry)); stack 831 ext/wddx/wddx.c wddx_stack_push((wddx_stack *)stack, &ent, sizeof(st_entry)); stack 837 ext/wddx/wddx.c stack->varname = estrdup(atts[i]); stack 876 ext/wddx/wddx.c wddx_stack_push((wddx_stack *)stack, &ent, sizeof(st_entry)); stack 890 ext/wddx/wddx.c if (wddx_stack_top(stack, (void**)&recordset) == SUCCESS && stack 900 ext/wddx/wddx.c wddx_stack_push((wddx_stack *)stack, &ent, sizeof(st_entry)); stack 908 ext/wddx/wddx.c wddx_stack_push((wddx_stack *)stack, &ent, sizeof(st_entry)); stack 918 ext/wddx/wddx.c wddx_stack *stack = (wddx_stack *)user_data; stack 926 ext/wddx/wddx.c if (stack->top == 0) { stack 935 ext/wddx/wddx.c wddx_stack_top(stack, (void**)&ent1); stack 938 ext/wddx/wddx.c if (stack->top > 1) { stack 939 ext/wddx/wddx.c stack->top--; stack 941 ext/wddx/wddx.c stack->done = 1; stack 973 ext/wddx/wddx.c if (stack->top > 1) { stack 974 ext/wddx/wddx.c stack->top--; stack 975 ext/wddx/wddx.c wddx_stack_top(stack, (void**)&ent2); stack 1039 ext/wddx/wddx.c stack->done = 1; stack 1041 ext/wddx/wddx.c } else if (!strcmp(name, EL_VAR) && stack->varname) { stack 1042 ext/wddx/wddx.c efree(stack->varname); stack 1043 ext/wddx/wddx.c stack->varname = NULL; stack 1046 ext/wddx/wddx.c wddx_stack_top(stack, (void **)&ent); stack 1048 ext/wddx/wddx.c stack->top--; stack 1058 ext/wddx/wddx.c wddx_stack *stack = (wddx_stack *)user_data; stack 1061 ext/wddx/wddx.c if (!wddx_stack_is_empty(stack) && !stack->done) { stack 1062 ext/wddx/wddx.c wddx_stack_top(stack, (void**)&ent); stack 1139 ext/wddx/wddx.c wddx_stack stack; stack 1144 ext/wddx/wddx.c wddx_stack_init(&stack); stack 1147 ext/wddx/wddx.c XML_SetUserData(parser, &stack); stack 1155 ext/wddx/wddx.c if (stack.top == 1) { stack 1156 ext/wddx/wddx.c wddx_stack_top(&stack, (void**)&ent); stack 1164 ext/wddx/wddx.c wddx_stack_destroy(&stack); stack 421 main/alloca.c long size, pseg, this_segment, stack; stack 115 sapi/apache_hooks/mod_php5.c int sapi_stack_init_ex(sapi_stack *stack, int persistent) stack 117 sapi/apache_hooks/mod_php5.c stack->top = 0; stack 118 sapi/apache_hooks/mod_php5.c stack->persistent = persistent; stack 119 sapi/apache_hooks/mod_php5.c stack->elements = (void **) pemalloc(sizeof(void **) * STACK_BLOCK_SIZE, persistent); stack 120 sapi/apache_hooks/mod_php5.c if (!stack->elements) { stack 123 sapi/apache_hooks/mod_php5.c stack->max = STACK_BLOCK_SIZE; stack 127 sapi/apache_hooks/mod_php5.c int sapi_stack_push(sapi_stack *stack, void *element) stack 129 sapi/apache_hooks/mod_php5.c if (stack->top >= stack->max) { /* we need to allocate more memory */ stack 130 sapi/apache_hooks/mod_php5.c stack->elements = (void **) perealloc(stack->elements, stack 131 sapi/apache_hooks/mod_php5.c (sizeof(void **) * (stack->max += STACK_BLOCK_SIZE)), stack->persistent); stack 132 sapi/apache_hooks/mod_php5.c if (!stack->elements) { stack 136 sapi/apache_hooks/mod_php5.c stack->elements[stack->top] = (void *) element; stack 137 sapi/apache_hooks/mod_php5.c return stack->top++; stack 139 sapi/apache_hooks/mod_php5.c void* sapi_stack_pop(sapi_stack *stack) { stack 140 sapi/apache_hooks/mod_php5.c if(stack->top == 0) { stack 144 sapi/apache_hooks/mod_php5.c return stack->elements[--stack->top]; stack 148 sapi/apache_hooks/mod_php5.c int sapi_stack_destroy(sapi_stack *stack) stack 153 sapi/apache_hooks/mod_php5.c int sapi_stack_apply_with_argument_all(sapi_stack *stack, int type, int (*apply_function)(void *element, void *arg), void *arg) stack 159 sapi/apache_hooks/mod_php5.c for (i=stack->top-1; i>=0; i--) { stack 160 sapi/apache_hooks/mod_php5.c retval = apply_function(stack->elements[i], arg); stack 164 sapi/apache_hooks/mod_php5.c for (i=0; i<stack->top; i++) { stack 165 sapi/apache_hooks/mod_php5.c retval = apply_function(stack->elements[i], arg); stack 173 sapi/apache_hooks/mod_php5.c int sapi_stack_apply_with_argument_stop_if_equals(sapi_stack *stack, int type, int (*apply_function)(void *element, void *arg), void *arg, int stopval) stack 179 sapi/apache_hooks/mod_php5.c for (i=stack->top-1; i>=0; i--) { stack 180 sapi/apache_hooks/mod_php5.c if ((ret = apply_function(stack->elements[i], arg)) == stopval) { stack 186 sapi/apache_hooks/mod_php5.c for (i=0; i<stack->top; i++) { stack 187 sapi/apache_hooks/mod_php5.c if ((ret = apply_function(stack->elements[i], arg)) == stopval) { stack 196 sapi/apache_hooks/mod_php5.c int sapi_stack_apply_with_argument_stop_if_http_error(sapi_stack *stack, int type, int (*apply_function)(void *element, void *arg), void *arg) stack 202 sapi/apache_hooks/mod_php5.c for (i=stack->top-1; i>=0; i--) { stack 203 sapi/apache_hooks/mod_php5.c if ((ret = apply_function(stack->elements[i], arg)) > 0) { stack 209 sapi/apache_hooks/mod_php5.c for (i=0; i<stack->top; i++) { stack 210 sapi/apache_hooks/mod_php5.c if ((ret = apply_function(stack->elements[i], arg)) > 0) { stack 219 sapi/apache_hooks/mod_php5.c void php_handler_stack_destroy(sapi_stack *stack) stack 222 sapi/apache_hooks/mod_php5.c while((ph = (php_handler *)sapi_stack_pop(stack)) != NULL) { stack 81 sapi/phpdbg/phpdbg.h int phpdbg_do_parse(phpdbg_param_t *stack, char *input TSRMLS_DC); stack 394 sapi/phpdbg/phpdbg_cmd.c PHPDBG_API void phpdbg_stack_free(phpdbg_param_t *stack) { stack 395 sapi/phpdbg/phpdbg_cmd.c if (stack && stack->next) { stack 396 sapi/phpdbg/phpdbg_cmd.c phpdbg_param_t *remove = stack->next; stack 440 sapi/phpdbg/phpdbg_cmd.c stack->next = NULL; stack 444 sapi/phpdbg/phpdbg_cmd.c PHPDBG_API void phpdbg_stack_push(phpdbg_param_t *stack, phpdbg_param_t *param) { stack 454 sapi/phpdbg/phpdbg_cmd.c if (stack->top == NULL) { stack 455 sapi/phpdbg/phpdbg_cmd.c stack->top = next; stack 457 sapi/phpdbg/phpdbg_cmd.c stack->next = next; stack 459 sapi/phpdbg/phpdbg_cmd.c stack->top->next = next; stack 460 sapi/phpdbg/phpdbg_cmd.c next->top = stack->top; stack 461 sapi/phpdbg/phpdbg_cmd.c stack->top = next; stack 464 sapi/phpdbg/phpdbg_cmd.c stack->len++; stack 467 sapi/phpdbg/phpdbg_cmd.c PHPDBG_API int phpdbg_stack_verify(const phpdbg_command_t *command, phpdbg_param_t **stack, char **why TSRMLS_DC) { stack 470 sapi/phpdbg/phpdbg_cmd.c const phpdbg_param_t *top = (stack != NULL) ? *stack : NULL; stack 671 sapi/phpdbg/phpdbg_cmd.c PHPDBG_API int phpdbg_stack_execute(phpdbg_param_t *stack, char **why TSRMLS_DC) { stack 675 sapi/phpdbg/phpdbg_cmd.c if (stack->type != STACK_PARAM) { stack 681 sapi/phpdbg/phpdbg_cmd.c if (!stack->len) { stack 687 sapi/phpdbg/phpdbg_cmd.c top = (phpdbg_param_t*) stack->next; stack 135 sapi/phpdbg/phpdbg_cmd.h PHPDBG_API void phpdbg_stack_push(phpdbg_param_t *stack, phpdbg_param_t *param); stack 137 sapi/phpdbg/phpdbg_cmd.h PHPDBG_API int phpdbg_stack_verify(const phpdbg_command_t *command, phpdbg_param_t **stack, char **why TSRMLS_DC); stack 138 sapi/phpdbg/phpdbg_cmd.h PHPDBG_API int phpdbg_stack_execute(phpdbg_param_t *stack, char **why TSRMLS_DC); stack 139 sapi/phpdbg/phpdbg_cmd.h PHPDBG_API void phpdbg_stack_free(phpdbg_param_t *stack); stack 31 sapi/phpdbg/phpdbg_lexer.c void phpdbg_init_lexer (phpdbg_param_t *stack, char *input TSRMLS_DC) { stack 32 sapi/phpdbg/phpdbg_lexer.c PHPDBG_G(parser_stack) = stack; stack 37 sapi/phpdbg/phpdbg_lexer.h void phpdbg_init_lexer (phpdbg_param_t *stack, char *input TSRMLS_DC); stack 176 sapi/phpdbg/phpdbg_parser.y int phpdbg_do_parse(phpdbg_param_t *stack, char *input TSRMLS_DC) { stack 177 sapi/phpdbg/phpdbg_parser.y phpdbg_init_lexer(stack, input TSRMLS_CC); stack 38 sapi/phpdbg/phpdbg_print.c PHPDBG_PRINT_COMMAND_D(stack, "print out the instructions in the current stack", 's', print_stack, NULL, 0), stack 127 sapi/phpdbg/phpdbg_print.c PHPDBG_PRINT(stack) /* {{{ */ stack 36 sapi/phpdbg/phpdbg_print.h PHPDBG_PRINT(stack); stack 72 sapi/phpdbg/phpdbg_prompt.c static inline int phpdbg_call_register(phpdbg_param_t *stack TSRMLS_DC) /* {{{ */ stack 76 sapi/phpdbg/phpdbg_prompt.c if (stack->type == STACK_PARAM) { stack 77 sapi/phpdbg/phpdbg_prompt.c name = stack->next; stack 248 sapi/phpdbg/phpdbg_prompt.c phpdbg_param_t stack; stack 250 sapi/phpdbg/phpdbg_prompt.c phpdbg_init_param(&stack, STACK_PARAM); stack 252 sapi/phpdbg/phpdbg_prompt.c if (phpdbg_do_parse(&stack, input TSRMLS_CC) <= 0) { stack 253 sapi/phpdbg/phpdbg_prompt.c switch (phpdbg_stack_execute(&stack, &why TSRMLS_CC)) { stack 256 sapi/phpdbg/phpdbg_prompt.c if (phpdbg_call_register(&stack TSRMLS_CC) == FAILURE) { stack 271 sapi/phpdbg/phpdbg_prompt.c phpdbg_stack_free(&stack); stack 999 sapi/phpdbg/phpdbg_prompt.c phpdbg_param_t stack; stack 1007 sapi/phpdbg/phpdbg_prompt.c phpdbg_init_param(&stack, STACK_PARAM); stack 1009 sapi/phpdbg/phpdbg_prompt.c if (phpdbg_do_parse(&stack, input TSRMLS_CC) <= 0) { stack 1010 sapi/phpdbg/phpdbg_prompt.c switch (ret = phpdbg_stack_execute(&stack, &why TSRMLS_CC)) { stack 1013 sapi/phpdbg/phpdbg_prompt.c if (phpdbg_call_register(&stack TSRMLS_CC) == FAILURE) { stack 1043 sapi/phpdbg/phpdbg_prompt.c phpdbg_stack_free(&stack); stack 1051 sapi/phpdbg/phpdbg_prompt.c phpdbg_stack_free(&stack);