From: Felipe Pena Date: Sun, 10 Nov 2013 21:51:44 +0000 (-0200) Subject: - Move PHPDBG_NEXT to prompt header X-Git-Tag: php-5.6.0alpha1~110^2~503^2~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e1931c14a5ae9f37bf13e7bccc06390d298d3e3d;p=php - Move PHPDBG_NEXT to prompt header --- diff --git a/phpdbg.h b/phpdbg.h index c9f3e5ee3d..acfabafb5d 100644 --- a/phpdbg.h +++ b/phpdbg.h @@ -42,8 +42,6 @@ # define PHPDBG_G(v) (phpdbg_globals.v) #endif -#define PHPDBG_NEXT 2 - ZEND_BEGIN_MODULE_GLOBALS(phpdbg) HashTable bp_files; HashTable bp_symbols; diff --git a/phpdbg_prompt.h b/phpdbg_prompt.h index b6921d671e..f14b656541 100644 --- a/phpdbg_prompt.h +++ b/phpdbg_prompt.h @@ -27,6 +27,8 @@ #define PHPDBG_STRL(s) s, sizeof(s)-1 +#define PHPDBG_NEXT 2 + /** * Command handler */ @@ -52,9 +54,9 @@ int phpdbg_do_cmd(const phpdbg_command_t *command, char *cmd_line, size_t cmd_le * Command Declarators */ #define PHPDBG_COMMAND_D(name, tip) \ - {PHPDBG_STRL(#name), tip, sizeof(tip)-1, phpdbg_do_##name} + {PHPDBG_STRL(#name), tip, sizeof(tip)-1, phpdbg_do_##name} #define PHPDBG_COMMAND(name) \ - int phpdbg_do_##name(const char *expr, size_t expr_len TSRMLS_DC) + int phpdbg_do_##name(const char *expr, size_t expr_len TSRMLS_DC) int phpdbg_interactive(int argc, char **argv TSRMLS_DC); void phpdbg_execute_ex(zend_execute_data *execute_data TSRMLS_DC);