Lines Matching refs:top
443 if (stack->top == NULL) { in phpdbg_stack_push()
444 stack->top = next; in phpdbg_stack_push()
445 next->top = NULL; 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()
463 stack->top = param->top; in phpdbg_stack_separate()
469 const phpdbg_param_t *top = (stack != NULL) ? *stack : NULL; in phpdbg_stack_verify() local
478 if (!top || top->type == STACK_PARAM) { in phpdbg_stack_verify()
518 if (top && top->type == STACK_PARAM) { in phpdbg_stack_verify()
531 case 'i': verify_arg("raw input", top, STR_PARAM); break; in phpdbg_stack_verify()
532 case 's': verify_arg("string", top, STR_PARAM); break; in phpdbg_stack_verify()
533 case 'n': verify_arg("number", top, NUMERIC_PARAM); break; in phpdbg_stack_verify()
534 case 'm': verify_arg("method", top, METHOD_PARAM); break; in phpdbg_stack_verify()
535 case 'a': verify_arg("address", top, ADDR_PARAM); break; in phpdbg_stack_verify()
536 case 'f': verify_arg("file:line", top, FILE_PARAM); break; in phpdbg_stack_verify()
537 case 'c': verify_arg("condition", top, COND_PARAM); break; in phpdbg_stack_verify()
538 case 'o': verify_arg("opcode", top, OP_PARAM); break; in phpdbg_stack_verify()
539 case 'b': verify_arg("boolean", top, NUMERIC_PARAM); break; in phpdbg_stack_verify()
544 if (top) { in phpdbg_stack_verify()
545 top = top->next; in phpdbg_stack_verify()
570 …k_resolve(const phpdbg_command_t *commands, const phpdbg_command_t *parent, phpdbg_param_t **top) { in phpdbg_stack_resolve() argument
572 phpdbg_param_t *name = *top; in phpdbg_stack_resolve()
618 (*top) = (*top)->next; in phpdbg_stack_resolve()
653 if (command->subs && (*top) && ((*top)->type == STR_PARAM)) { in phpdbg_stack_resolve()
654 return phpdbg_stack_resolve(command->subs, command, top); in phpdbg_stack_resolve()
664 phpdbg_param_t *top = (phpdbg_param_t *) stack->next; in phpdbg_internal_stack_execute() local
666 switch (top->type) { in phpdbg_internal_stack_execute()
670 return PHPDBG_COMMAND_HANDLER(ev)(top); in phpdbg_internal_stack_execute()
678 return PHPDBG_COMMAND_HANDLER(run)(top); in phpdbg_internal_stack_execute()
687 return PHPDBG_COMMAND_HANDLER(sh)(top); in phpdbg_internal_stack_execute()
690 handler = phpdbg_stack_resolve(phpdbg_prompt_commands, NULL, &top); in phpdbg_internal_stack_execute()
698 if (phpdbg_stack_verify(handler, &top) == SUCCESS) { in phpdbg_internal_stack_execute()
701 return handler->handler(top); in phpdbg_internal_stack_execute()
716 phpdbg_param_t *top = stack; in phpdbg_stack_execute() local
729 if (top->type == STACK_PARAM) { in phpdbg_stack_execute()
731 if ((result = phpdbg_internal_stack_execute(top, allow_async_unsafe)) != SUCCESS) { in phpdbg_stack_execute()
735 } while ((top = top->next)); in phpdbg_stack_execute()