From 2bda09abc6c938b6c964052a43b830e591a7ede9 Mon Sep 17 00:00:00 2001 From: Felipe Pena Date: Sat, 9 Nov 2013 23:42:41 -0200 Subject: [PATCH] - Added prototype for non-static function, fixed typo and staticfy command handler --- phpdbg_prompt.c | 4 ++-- phpdbg_prompt.h | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) 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 */ -- 2.50.1