]> granicus.if.org Git - php/commitdiff
- Move PHPDBG_NEXT to prompt header
authorFelipe Pena <felipensp@gmail.com>
Sun, 10 Nov 2013 21:51:44 +0000 (19:51 -0200)
committerFelipe Pena <felipensp@gmail.com>
Sun, 10 Nov 2013 21:51:44 +0000 (19:51 -0200)
phpdbg.h
phpdbg_prompt.h

index c9f3e5ee3df35401d31a979e38c9d5868abd922c..acfabafb5dfe20cbee1469a518b203d3ed757e34 100644 (file)
--- 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;
index b6921d671e446c223327bfd26f4cda130566bc54..f14b656541eba855cb63b4076604f1fdd4763250 100644 (file)
@@ -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);