From: Felipe Pena Date: Sun, 10 Nov 2013 01:42:41 +0000 (-0200) Subject: - Added prototype for non-static function, fixed typo and staticfy command handler X-Git-Tag: php-5.6.0alpha1~110^2~552 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2bda09abc6c938b6c964052a43b830e591a7ede9;p=php - Added prototype for non-static function, fixed typo and staticfy command handler --- diff --git a/phpdbg_prompt.c b/phpdbg_prompt.c index 73a18eb818..7954492189 100644 --- a/phpdbg_prompt.c +++ b/phpdbg_prompt.c @@ -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; } diff --git a/phpdbg_prompt.h b/phpdbg_prompt.h index 0740a940ba..09a5028a36 100644 --- a/phpdbg_prompt.h +++ b/phpdbg_prompt.h @@ -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 */