com php-src: - Rename has_args to arg_type: phpdbg _cmd.c phpdbg_cmd.h

From: Date: Sun, 17 Nov 2013 22:07:19 +0000
Subject: com php-src: - Rename has_args to arg_type: phpdbg _cmd.c phpdbg_cmd.h
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-74872@lists.php.net to get a copy of this message
Commit: eef21c186cbd494392136a63a631ebc021b69d15 Author: Felipe Pena <felipensp@gmail.com> Sun, 17 Nov 2013 20:07:19 -0200 Parents: 35601e6feca74a2961c5fbb9853d98c1b4896af1 Branches: PHP-5.6 Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=eef21c186cbd494392136a63a631ebc021b69d15 Log: - Rename has_args to arg_type Changed paths: M phpdbg_cmd.c M phpdbg_cmd.h Diff: diff --git a/phpdbg_cmd.c b/phpdbg_cmd.c index 479e678..a2a6959 100644 --- a/phpdbg_cmd.c +++ b/phpdbg_cmd.c @@ -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 { diff --git a/phpdbg_cmd.h b/phpdbg_cmd.h index 6b697aa..0bfdb0f 100644 --- a/phpdbg_cmd.h +++ b/phpdbg_cmd.h @@ -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? */ }; /* }}} */

« previous php.cvs (#74872) next »