com php-src: - Cosmetic changes: phpdbg_prompt.c phpdbg _prompt.h
| From: | Bob Weinand | Date: | Sun, 10 Nov 2013 11:36:57 +0000 |
| Subject: | com php-src: - Cosmetic changes: phpdbg_prompt.c phpdbg _prompt.h | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-75227@lists.php.net to get a copy of this message | ||
Commit: 9dd3e54351ad3e72c3f55811a3820845aa7ad413
Author: Felipe Pena <felipensp@gmail.com> Sun, 10 Nov 2013 09:36:57 -0200
Parents: 6df19b3aa25b4384ab806841ebbafa8f4fe95962
Branches: PHP-5.6
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=9dd3e54351ad3e72c3f55811a3820845aa7ad413
Log:
- Cosmetic changes
Changed paths:
M phpdbg_prompt.c
M phpdbg_prompt.h
Diff:
diff --git a/phpdbg_prompt.c b/phpdbg_prompt.c
index 6fc59a0..9d30193 100644
--- a/phpdbg_prompt.c
+++ b/phpdbg_prompt.c
@@ -33,10 +33,10 @@ static PHPDBG_COMMAND(exec) { /* {{{ */
"Unsetting old execution context: %s\n", PHPDBG_G(exec));
efree(PHPDBG_G(exec));
}
-
+
PHPDBG_G(exec) = estrndup(
expr, PHPDBG_G(exec_len)=expr_len);
-
+
printf(
"Set execution context: %s\n", PHPDBG_G(exec));
} /* }}} */
@@ -55,7 +55,7 @@ static PHPDBG_COMMAND(brake) { /* {{{ */
static PHPDBG_COMMAND(quit) /* {{{ */
{
zend_bailout();
-
+
return SUCCESS;
} /* }}} */
@@ -88,13 +88,13 @@ static PHPDBG_COMMAND(help) /* {{{ */
}
}
printf("Please report bugs to <http://theman.in/themoon>\n");
-
+
return SUCCESS;
} /* }}} */
static const phpdbg_command_t phpdbg_prompt_commands[] = {
- PHPDBG_COMMAND_D(exec, "set execution context"),
- PHPDBG_COMMAND_D(print, "print something"),
+ PHPDBG_COMMAND_D(exec, "set execution context"),
+ PHPDBG_COMMAND_D(print, "print something"),
PHPDBG_COMMAND_D(brake, "set brake point"),
PHPDBG_COMMAND_D(help, "show help menu"),
PHPDBG_COMMAND_D(quit, "exit phpdbg"),
@@ -106,7 +106,7 @@ int phpdbg_do_cmd(const phpdbg_command_t *command, char *cmd_line, size_t cmd_le
char *params = NULL;
const char *cmd = strtok_r(cmd_line, " ", ¶ms);
size_t expr_len = cmd != NULL ? strlen(cmd) : 0;
-
+
while (command && command->name) {
if (command->name_len == expr_len
&& memcmp(cmd, command->name, expr_len) == 0) {
@@ -130,13 +130,13 @@ void phpdbg_interactive(int argc, char **argv TSRMLS_DC) /* {{{ */
while (cmd[cmd_len] == '\n') {
cmd[cmd_len] = 0;
}
-
+
if (cmd_len) {
if (phpdbg_do_cmd(phpdbg_prompt_commands, cmd, cmd_len TSRMLS_CC) == FAILURE) {
printf("error executing %s !\n", cmd);
}
}
-
+
printf("phpdbg> ");
}
} /* }}} */
diff --git a/phpdbg_prompt.h b/phpdbg_prompt.h
index b1238ec..590358b 100644
--- a/phpdbg_prompt.h
+++ b/phpdbg_prompt.h
@@ -56,6 +56,6 @@ int phpdbg_do_cmd(const phpdbg_command_t *command, char *cmd_line, size_t cmd_le
#define PHPDBG_COMMAND(name) \
int phpdbg_do_##name(const char *expr, size_t expr_len TSRMLS_DC)
-void phpdbg_interactive(int argc, char** argv TSRMLS_DC);
+void phpdbg_interactive(int argc, char **argv TSRMLS_DC);
#endif /* PHPDBG_PROMPT_H */