Lines Matching refs:stack

377 PHPDBG_API void phpdbg_stack_free(phpdbg_param_t *stack) {  in phpdbg_stack_free()  argument
378 ZEND_ASSERT(stack != NULL); in phpdbg_stack_free()
380 if (stack->next) { in phpdbg_stack_free()
381 phpdbg_param_t *remove = stack->next; in phpdbg_stack_free()
432 stack->next = NULL; in phpdbg_stack_free()
437 PHPDBG_API void phpdbg_stack_push(phpdbg_param_t *stack, phpdbg_param_t *param) { in phpdbg_stack_push() argument
448 if (stack->top == NULL) { in phpdbg_stack_push()
449 stack->top = next; in phpdbg_stack_push()
451 stack->next = next; in phpdbg_stack_push()
453 stack->top->next = next; in phpdbg_stack_push()
454 next->top = stack->top; in phpdbg_stack_push()
455 stack->top = next; in phpdbg_stack_push()
458 stack->len++; in phpdbg_stack_push()
463 phpdbg_param_t *stack = calloc(1, sizeof(phpdbg_param_t)); in phpdbg_stack_separate() local
465 stack->type = STACK_PARAM; in phpdbg_stack_separate()
466 stack->next = param->next; in phpdbg_stack_separate()
467 param->next = stack; in phpdbg_stack_separate()
468 stack->top = param->top; in phpdbg_stack_separate()
471 PHPDBG_API int phpdbg_stack_verify(const phpdbg_command_t *command, phpdbg_param_t **stack) { in phpdbg_stack_verify() argument
474 const phpdbg_param_t *top = (stack != NULL) ? *stack : NULL; in phpdbg_stack_verify()
667 static int phpdbg_internal_stack_execute(phpdbg_param_t *stack, bool allow_async_unsafe) { in phpdbg_internal_stack_execute() argument
669 phpdbg_param_t *top = (phpdbg_param_t *) stack->next; in phpdbg_internal_stack_execute()
720 PHPDBG_API int phpdbg_stack_execute(phpdbg_param_t *stack, bool allow_async_unsafe) { in phpdbg_stack_execute() argument
721 phpdbg_param_t *top = stack; in phpdbg_stack_execute()
723 if (stack->type != STACK_PARAM) { in phpdbg_stack_execute()
728 if (!stack->len) { in phpdbg_stack_execute()