- Rename has_args to arg_type

This commit is contained in:
Felipe Pena 2013-11-17 20:07:19 -02:00
parent 35601e6fec
commit eef21c186c
2 changed files with 3 additions and 3 deletions

View file

@ -164,10 +164,10 @@ int phpdbg_do_cmd( const 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!");
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!");
rc = FAILURE;
} else {

View file

@ -66,7 +66,7 @@ struct _phpdbg_command_t {
char alias; /* Alias */
phpdbg_command_handler_t handler; /* Command handler */
const phpdbg_command_t *subs; /* Sub Commands */
char has_args; /* Accept args? */
char arg_type; /* Accept args? */
};
/* }}} */