]> granicus.if.org Git - php/commitdiff
- Added prototype for non-static function, fixed typo and staticfy command handler
authorFelipe Pena <felipensp@gmail.com>
Sun, 10 Nov 2013 01:42:41 +0000 (23:42 -0200)
committerFelipe Pena <felipensp@gmail.com>
Sun, 10 Nov 2013 01:42:41 +0000 (23:42 -0200)
phpdbg_prompt.c
phpdbg_prompt.h

index 73a18eb8183764e338caf3dcc4fd823cc9ca5cb8..79544921897e05a50c050a8eb07536b17cb484fd 100644 (file)
@@ -21,7 +21,7 @@
 #include "zend.h"
 #include "phpdbg_prompt.h"
 
-void do_quit(const char *params) /* {{{ */
+static void do_quit(const char *params) /* {{{ */
 {
        zend_bailout();
 } /* }}} */
@@ -41,7 +41,7 @@ static void do_cmd(char *cmd_line) /* {{{ */
        while (command && command->name) {
                if (command->name_len == cmd_len
                        && memcmp(cmd, command->name, cmd_len) == 0) {
-                       /* Command find */
+                       /* Command found! */
                        command->handler(params);
                        return;
                }
index 0740a940ba60373892f393c02ce47d9a73ee8e25..09a5028a3617134ac8d30a2adb291afebfbde7ca 100644 (file)
@@ -40,4 +40,6 @@ typedef struct _phpdbg_command {
        phpdbg_command_handler handler;     /* Command handler */
 } phpdbg_command;
 
-#endif
+void phpdbg_iteractive(int, char**);
+
+#endif /* PHPDBG_PROMPT_H */