]> granicus.if.org Git - php/commitdiff
- Rename has_args to arg_type
authorFelipe Pena <felipensp@gmail.com>
Sun, 17 Nov 2013 22:07:19 +0000 (20:07 -0200)
committerFelipe Pena <felipensp@gmail.com>
Sun, 17 Nov 2013 22:07:19 +0000 (20:07 -0200)
phpdbg_cmd.c
phpdbg_cmd.h

index 479e6789904ae9a9e3c6ea3e34c1234979c34ac9..a2a6959dce97a3356b935d9c6415826e9e086dcd 100644 (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 {
index 6b697aaccc868c6311e5ca836ed63caf43bfd4d1..0bfdb0f28a3dafa367811bddc9a173149623d4da 100644 (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? */
 };
 /* }}} */