Lines Matching refs:stack
373 PHPDBG_API void phpdbg_stack_free(phpdbg_param_t *stack) { in phpdbg_stack_free() argument
374 if (stack && stack->next) { in phpdbg_stack_free()
375 phpdbg_param_t *remove = stack->next; in phpdbg_stack_free()
428 stack->next = NULL; in phpdbg_stack_free()
432 PHPDBG_API void phpdbg_stack_push(phpdbg_param_t *stack, phpdbg_param_t *param) { in phpdbg_stack_push() argument
443 if (stack->top == NULL) { in phpdbg_stack_push()
444 stack->top = next; in phpdbg_stack_push()
446 stack->next = next; in phpdbg_stack_push()
448 stack->top->next = next; in phpdbg_stack_push()
449 next->top = stack->top; in phpdbg_stack_push()
450 stack->top = next; in phpdbg_stack_push()
453 stack->len++; in phpdbg_stack_push()
458 phpdbg_param_t *stack = calloc(1, sizeof(phpdbg_param_t)); in phpdbg_stack_separate() local
460 stack->type = STACK_PARAM; in phpdbg_stack_separate()
461 stack->next = param->next; in phpdbg_stack_separate()
462 param->next = stack; in phpdbg_stack_separate()
463 stack->top = param->top; in phpdbg_stack_separate()
466 PHPDBG_API int phpdbg_stack_verify(const phpdbg_command_t *command, phpdbg_param_t **stack) { in phpdbg_stack_verify() argument
469 const phpdbg_param_t *top = (stack != NULL) ? *stack : NULL; in phpdbg_stack_verify()
662 static int phpdbg_internal_stack_execute(phpdbg_param_t *stack, zend_bool allow_async_unsafe) { in phpdbg_internal_stack_execute() argument
664 phpdbg_param_t *top = (phpdbg_param_t *) stack->next; in phpdbg_internal_stack_execute()
715 PHPDBG_API int phpdbg_stack_execute(phpdbg_param_t *stack, zend_bool allow_async_unsafe) { in phpdbg_stack_execute() argument
716 phpdbg_param_t *top = stack; in phpdbg_stack_execute()
718 if (stack->type != STACK_PARAM) { in phpdbg_stack_execute()
723 if (!stack->len) { in phpdbg_stack_execute()