diff options
author | krakjoe <joe.watkins@live.co.uk> | 2014-02-19 08:33:54 +0000 |
---|---|---|
committer | krakjoe <joe.watkins@live.co.uk> | 2014-02-19 08:33:54 +0000 |
commit | 996182993da1c35e8c35a3188b4c1adb764320f8 (patch) | |
tree | e276290e0d74f0075eb076378b9b3248baa92828 /phpdbg_set.c | |
parent | e2e93ac259150fde9e3660838a2e836daa939acb (diff) | |
download | php-git-996182993da1c35e8c35a3188b4c1adb764320f8.tar.gz |
remove input_t
support single char aliases
...
Diffstat (limited to 'phpdbg_set.c')
-rw-r--r-- | phpdbg_set.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/phpdbg_set.c b/phpdbg_set.c index a0dac2ea5b..7ce67d934d 100644 --- a/phpdbg_set.c +++ b/phpdbg_set.c @@ -69,7 +69,7 @@ PHPDBG_SET(break) /* {{{ */ break; case NUMERIC_PARAM: { - if (input && input->argc > 2) { + if (param->next) { /* if (phpdbg_argv_is(2, "on")) { phpdbg_enable_breakpoint(param->num TSRMLS_CC); @@ -99,14 +99,13 @@ PHPDBG_SET(break) /* {{{ */ #ifndef _WIN32 PHPDBG_SET(color) /* {{{ */ { - if ((param->type == STR_PARAM) && (input->argc == 3)) { + /*if ((param->type == STR_PARAM) && (input->argc == 3)) { const phpdbg_color_t *color = phpdbg_get_color( input->argv[2]->string, input->argv[2]->length TSRMLS_CC); int element = PHPDBG_COLOR_INVALID; - /* @TODO(anyone) make this consistent with other set commands */ if (color) { - /*if (phpdbg_argv_is(1, "prompt")) { + if (phpdbg_argv_is(1, "prompt")) { phpdbg_notice( "setting prompt color to %s (%s)", color->name, color->code); element = PHPDBG_COLOR_PROMPT; @@ -125,9 +124,8 @@ PHPDBG_SET(color) /* {{{ */ element = PHPDBG_COLOR_NOTICE; } else goto usage; -*/ - /* set color for element */ - /* phpdbg_set_color(element, color TSRMLS_CC); */ + + phpdbg_set_color(element, color TSRMLS_CC); } else { phpdbg_error( "Failed to find the requested color (%s)", input->argv[2]->string); @@ -136,7 +134,8 @@ PHPDBG_SET(color) /* {{{ */ usage: phpdbg_error( "set color used incorrectly: set color <prompt|error|notice> <color>"); - } + } */ + return SUCCESS; } /* }}} */ |