From e1931c14a5ae9f37bf13e7bccc06390d298d3e3d Mon Sep 17 00:00:00 2001 From: Felipe Pena Date: Sun, 10 Nov 2013 19:51:44 -0200 Subject: [PATCH] - Move PHPDBG_NEXT to prompt header --- phpdbg.h | 2 -- phpdbg_prompt.h | 6 ++++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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); -- 2.50.1