Lines Matching refs:command

32 static inline const char *phpdbg_command_name(const phpdbg_command_t *command, char *buffer) {  in ZEND_EXTERN_MODULE_GLOBALS()
35 if (command->parent) { in ZEND_EXTERN_MODULE_GLOBALS()
36 memcpy(&buffer[pos], command->parent->name, command->parent->name_len); in ZEND_EXTERN_MODULE_GLOBALS()
37 pos += command->parent->name_len; in ZEND_EXTERN_MODULE_GLOBALS()
42 memcpy(&buffer[pos], command->name, command->name_len); in ZEND_EXTERN_MODULE_GLOBALS()
43 pos += command->name_len; in ZEND_EXTERN_MODULE_GLOBALS()
471 PHPDBG_API int phpdbg_stack_verify(const phpdbg_command_t *command, phpdbg_param_t **stack) { in phpdbg_stack_verify() argument
472 if (command) { in phpdbg_stack_verify()
475 const char *arg = command->args; in phpdbg_stack_verify()
488 phpdbg_command_name(command, buffer)); in phpdbg_stack_verify()
503 arg = command->args; in phpdbg_stack_verify()
508 phpdbg_command_name(command, buffer), \ in phpdbg_stack_verify()
515 phpdbg_command_name(command, buffer), \ in phpdbg_stack_verify()
563 phpdbg_command_name(command, buffer), in phpdbg_stack_verify()
565 command->args, in phpdbg_stack_verify()
576 const phpdbg_command_t *command = commands; in phpdbg_stack_resolve() local
581 while (command && command->name && command->handler) { in phpdbg_stack_resolve()
582 if (name->len == 1 || command->name_len >= name->len) { in phpdbg_stack_resolve()
584 if (command->alias && (name->len == 1)) { in phpdbg_stack_resolve()
585 if (command->alias == (*name->str)) { in phpdbg_stack_resolve()
586 matched[matches] = command; in phpdbg_stack_resolve()
591 if (strncasecmp(command->name, name->str, name->len) == SUCCESS) { in phpdbg_stack_resolve()
594 if ((name->len != command->name_len && command->alias) || name->len == command->name_len) { in phpdbg_stack_resolve()
595 matched[matches] = command; in phpdbg_stack_resolve()
600 if (name->len == command->name_len) { in phpdbg_stack_resolve()
610 command++; in phpdbg_stack_resolve()
625 command = matched[0]; in phpdbg_stack_resolve()
658 if (command->subs && (*top) && ((*top)->type == STR_PARAM)) { in phpdbg_stack_resolve()
659 return phpdbg_stack_resolve(command->subs, command, top); in phpdbg_stack_resolve()
661 return command; in phpdbg_stack_resolve()