- Move PHPDBG_NEXT to prompt header

This commit is contained in:
Felipe Pena 2013-11-10 19:51:44 -02:00
parent 816925c7da
commit e1931c14a5
2 changed files with 4 additions and 4 deletions

View file

@ -42,8 +42,6 @@
# define PHPDBG_G(v) (phpdbg_globals.v) # define PHPDBG_G(v) (phpdbg_globals.v)
#endif #endif
#define PHPDBG_NEXT 2
ZEND_BEGIN_MODULE_GLOBALS(phpdbg) ZEND_BEGIN_MODULE_GLOBALS(phpdbg)
HashTable bp_files; HashTable bp_files;
HashTable bp_symbols; HashTable bp_symbols;

View file

@ -27,6 +27,8 @@
#define PHPDBG_STRL(s) s, sizeof(s)-1 #define PHPDBG_STRL(s) s, sizeof(s)-1
#define PHPDBG_NEXT 2
/** /**
* Command handler * Command handler
*/ */
@ -52,9 +54,9 @@ int phpdbg_do_cmd(const phpdbg_command_t *command, char *cmd_line, size_t cmd_le
* Command Declarators * Command Declarators
*/ */
#define PHPDBG_COMMAND_D(name, tip) \ #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) \ #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); int phpdbg_interactive(int argc, char **argv TSRMLS_DC);
void phpdbg_execute_ex(zend_execute_data *execute_data TSRMLS_DC); void phpdbg_execute_ex(zend_execute_data *execute_data TSRMLS_DC);