Lines Matching refs:command

28 static inline const char *phpdbg_command_name(const phpdbg_command_t *command, char *buffer) {  in ZEND_EXTERN_MODULE_GLOBALS()
31 if (command->parent) { in ZEND_EXTERN_MODULE_GLOBALS()
32 memcpy(&buffer[pos], command->parent->name, command->parent->name_len); in ZEND_EXTERN_MODULE_GLOBALS()
33 pos += command->parent->name_len; in ZEND_EXTERN_MODULE_GLOBALS()
38 memcpy(&buffer[pos], command->name, command->name_len); in ZEND_EXTERN_MODULE_GLOBALS()
39 pos += command->name_len; in ZEND_EXTERN_MODULE_GLOBALS()
466 PHPDBG_API int phpdbg_stack_verify(const phpdbg_command_t *command, phpdbg_param_t **stack) { in phpdbg_stack_verify() argument
467 if (command) { in phpdbg_stack_verify()
470 const char *arg = command->args; in phpdbg_stack_verify()
483 phpdbg_command_name(command, buffer)); in phpdbg_stack_verify()
498 arg = command->args; in phpdbg_stack_verify()
503 phpdbg_command_name(command, buffer), \ in phpdbg_stack_verify()
510 phpdbg_command_name(command, buffer), \ in phpdbg_stack_verify()
558 phpdbg_command_name(command, buffer), in phpdbg_stack_verify()
560 command->args, in phpdbg_stack_verify()
571 const phpdbg_command_t *command = commands; in phpdbg_stack_resolve() local
576 while (command && command->name && command->handler) { in phpdbg_stack_resolve()
577 if (name->len == 1 || command->name_len >= name->len) { in phpdbg_stack_resolve()
579 if (command->alias && (name->len == 1)) { in phpdbg_stack_resolve()
580 if (command->alias == (*name->str)) { in phpdbg_stack_resolve()
581 matched[matches] = command; in phpdbg_stack_resolve()
586 if (strncasecmp(command->name, name->str, name->len) == SUCCESS) { in phpdbg_stack_resolve()
589 if ((name->len != command->name_len && command->alias) || name->len == command->name_len) { in phpdbg_stack_resolve()
590 matched[matches] = command; in phpdbg_stack_resolve()
595 if (name->len == command->name_len) { in phpdbg_stack_resolve()
605 command++; in phpdbg_stack_resolve()
620 command = matched[0]; 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()
656 return command; in phpdbg_stack_resolve()