mirror of
https://github.com/php/php-src.git
synced 2025-08-19 08:49:28 +02:00
- Rename has_args to arg_type
This commit is contained in:
parent
35601e6fec
commit
eef21c186c
2 changed files with 3 additions and 3 deletions
|
@ -164,10 +164,10 @@ int phpdbg_do_cmd( const phpdbg_command_t *command,
|
||||||
|
|
||||||
*selected = (phpdbg_command_t*) command;
|
*selected = (phpdbg_command_t*) command;
|
||||||
|
|
||||||
if (command->has_args == REQUIRED_ARG && param->type == EMPTY_PARAM) {
|
if (command->arg_type == REQUIRED_ARG && param->type == EMPTY_PARAM) {
|
||||||
phpdbg_error("This command requires argument!");
|
phpdbg_error("This command requires argument!");
|
||||||
rc = FAILURE;
|
rc = FAILURE;
|
||||||
} else if (command->has_args == NO_ARG && param->type != EMPTY_PARAM) {
|
} else if (command->arg_type == NO_ARG && param->type != EMPTY_PARAM) {
|
||||||
phpdbg_error("This command does not expect argument!");
|
phpdbg_error("This command does not expect argument!");
|
||||||
rc = FAILURE;
|
rc = FAILURE;
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -66,7 +66,7 @@ struct _phpdbg_command_t {
|
||||||
char alias; /* Alias */
|
char alias; /* Alias */
|
||||||
phpdbg_command_handler_t handler; /* Command handler */
|
phpdbg_command_handler_t handler; /* Command handler */
|
||||||
const phpdbg_command_t *subs; /* Sub Commands */
|
const phpdbg_command_t *subs; /* Sub Commands */
|
||||||
char has_args; /* Accept args? */
|
char arg_type; /* Accept args? */
|
||||||
};
|
};
|
||||||
/* }}} */
|
/* }}} */
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue