diff options
author | krakjoe <joe.watkins@live.co.uk> | 2013-11-24 19:34:18 +0000 |
---|---|---|
committer | krakjoe <joe.watkins@live.co.uk> | 2013-11-24 19:34:18 +0000 |
commit | ddcfa42f15217d8e8e21248cc5c7e1ee2007e7f6 (patch) | |
tree | 2bc89b90458ae52d810eb7ab597e7d200195cc37 /phpdbg_cmd.h | |
parent | c85f247eacccec99d531109732bb3ba757806ecc (diff) | |
download | php-git-ddcfa42f15217d8e8e21248cc5c7e1ee2007e7f6.tar.gz |
get good control over colors and prompt
Diffstat (limited to 'phpdbg_cmd.h')
-rw-r--r-- | phpdbg_cmd.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/phpdbg_cmd.h b/phpdbg_cmd.h index 57ec73fff5..1205437253 100644 --- a/phpdbg_cmd.h +++ b/phpdbg_cmd.h @@ -92,6 +92,8 @@ typedef struct { } phpdbg_frame_t; /* }}} */ + + /* * Workflow: * 1) read input @@ -112,6 +114,8 @@ typedef struct { PHPDBG_API phpdbg_input_t* phpdbg_read_input(char *buffered TSRMLS_DC); PHPDBG_API phpdbg_input_t** phpdbg_read_argv(char *buffer, int *argc TSRMLS_DC); PHPDBG_API void phpdbg_destroy_input(phpdbg_input_t** TSRMLS_DC); +#define phpdbg_argv_is(n, s) \ + (memcmp(input->argv[n]->string, s, input->argv[n]->length-1) == SUCCESS) /* * Parameter Management |