com php-src: - Added prototype for non-static function, fixed typo and staticfy command handler: phpdbg_prompt.c phpdbg_prompt .h

From: Date: Sun, 10 Nov 2013 01:42:41 +0000
Subject: com php-src: - Added prototype for non-static function, fixed typo and staticfy command handler: phpdbg_prompt.c phpdbg_prompt .h
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-75234@lists.php.net to get a copy of this message
Commit: 2bda09abc6c938b6c964052a43b830e591a7ede9 Author: Felipe Pena <felipensp@gmail.com> Sat, 9 Nov 2013 23:42:41 -0200 Parents: 19c16083a71be15638828b60c2e9bce697fa13cc Branches: PHP-5.6 Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=2bda09abc6c938b6c964052a43b830e591a7ede9 Log: - Added prototype for non-static function, fixed typo and staticfy command handler Changed paths: M phpdbg_prompt.c M phpdbg_prompt.h Diff: diff --git a/phpdbg_prompt.c b/phpdbg_prompt.c index 73a18eb..7954492 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 0740a94..09a5028 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 */

« previous php.cvs (#75234) next »