Lines Matching refs:top
445 if (stack->top == NULL) { in phpdbg_stack_push()
446 stack->top = next; in phpdbg_stack_push()
447 next->top = NULL; in phpdbg_stack_push()
450 stack->top->next = next; in phpdbg_stack_push()
451 next->top = stack->top; in phpdbg_stack_push()
452 stack->top = next; in phpdbg_stack_push()
465 stack->top = param->top; in phpdbg_stack_separate()
471 const phpdbg_param_t *top = (stack != NULL) ? *stack : NULL; in phpdbg_stack_verify() local
480 if (!top || top->type == STACK_PARAM) { in phpdbg_stack_verify()
520 if (top && top->type == STACK_PARAM) { in phpdbg_stack_verify()
533 case 'i': verify_arg("raw input", top, STR_PARAM); break; in phpdbg_stack_verify()
534 case 's': verify_arg("string", top, STR_PARAM); break; in phpdbg_stack_verify()
535 case 'n': verify_arg("number", top, NUMERIC_PARAM); break; in phpdbg_stack_verify()
536 case 'm': verify_arg("method", top, METHOD_PARAM); break; in phpdbg_stack_verify()
537 case 'a': verify_arg("address", top, ADDR_PARAM); break; in phpdbg_stack_verify()
538 case 'f': verify_arg("file:line", top, FILE_PARAM); break; in phpdbg_stack_verify()
539 case 'c': verify_arg("condition", top, COND_PARAM); break; in phpdbg_stack_verify()
540 case 'o': verify_arg("opcode", top, OP_PARAM); break; in phpdbg_stack_verify()
541 case 'b': verify_arg("boolean", top, NUMERIC_PARAM); break; in phpdbg_stack_verify()
546 if (top) { in phpdbg_stack_verify()
547 top = top->next; in phpdbg_stack_verify()
572 …k_resolve(const phpdbg_command_t *commands, const phpdbg_command_t *parent, phpdbg_param_t **top) { in phpdbg_stack_resolve() argument
574 phpdbg_param_t *name = *top; in phpdbg_stack_resolve()
620 (*top) = (*top)->next; in phpdbg_stack_resolve()
655 if (command->subs && (*top) && ((*top)->type == STR_PARAM)) { in phpdbg_stack_resolve()
656 return phpdbg_stack_resolve(command->subs, command, top); in phpdbg_stack_resolve()
666 phpdbg_param_t *top = (phpdbg_param_t *) stack->next; in phpdbg_internal_stack_execute() local
668 switch (top->type) { in phpdbg_internal_stack_execute()
672 return PHPDBG_COMMAND_HANDLER(ev)(top); in phpdbg_internal_stack_execute()
680 return PHPDBG_COMMAND_HANDLER(run)(top); in phpdbg_internal_stack_execute()
689 return PHPDBG_COMMAND_HANDLER(sh)(top); in phpdbg_internal_stack_execute()
692 handler = phpdbg_stack_resolve(phpdbg_prompt_commands, NULL, &top); in phpdbg_internal_stack_execute()
700 if (phpdbg_stack_verify(handler, &top) == SUCCESS) { in phpdbg_internal_stack_execute()
703 return handler->handler(top); in phpdbg_internal_stack_execute()
718 phpdbg_param_t *top = stack; in phpdbg_stack_execute() local
731 if (top->type == STACK_PARAM) { in phpdbg_stack_execute()
733 if ((result = phpdbg_internal_stack_execute(top, allow_async_unsafe)) != SUCCESS) { in phpdbg_stack_execute()
737 } while ((top = top->next)); in phpdbg_stack_execute()