com php-src: alias printing commands: phpdbg_print.h
| From: | Bob Weinand | Date: | Thu, 14 Nov 2013 12:25:19 +0000 |
| Subject: | com php-src: alias printing commands: phpdbg_print.h | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-74980@lists.php.net to get a copy of this message | ||
Commit: 4283b125c9b63a57283a28d70614b342d6c3fe75
Author: krakjoe <joe.watkins@live.co.uk> Thu, 14 Nov 2013 12:25:19 +0000
Parents: dc580c685f1a5666a652d51eadacb3893eac2358
Branches: PHP-5.6
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=4283b125c9b63a57283a28d70614b342d6c3fe75
Log:
alias printing commands
Changed paths:
M phpdbg_print.h
Diff:
diff --git a/phpdbg_print.h b/phpdbg_print.h
index 7e48f7b..68e1f5e 100644
--- a/phpdbg_print.h
+++ b/phpdbg_print.h
@@ -26,8 +26,8 @@
/**
* Command Declarators
*/
-#define PHPDBG_PRINT_D(name, tip) \
- {PHPDBG_STRL(#name), tip, sizeof(tip)-1, 0, phpdbg_do_print_##name}
+#define PHPDBG_PRINT_D(name, tip, alias) \
+ {PHPDBG_STRL(#name), tip, sizeof(tip)-1, alias, phpdbg_do_print_##name}
#define PHPDBG_PRINT(name) \
int phpdbg_do_print_##name(const char *expr, size_t expr_len TSRMLS_DC)
@@ -43,10 +43,10 @@ PHPDBG_PRINT(func);
* Commands
*/
static const phpdbg_command_t phpdbg_print_commands[] = {
- PHPDBG_PRINT_D(opline, "print the current opline information"),
- PHPDBG_PRINT_D(class, "print out the instructions in the specified class"),
- PHPDBG_PRINT_D(method, "print out the instructions in the specified method"),
- PHPDBG_PRINT_D(func, "print out the instructions in the specified function"),
+ PHPDBG_PRINT_D(opline, "print the current opline information", 'o'),
+ PHPDBG_PRINT_D(class, "print out the instructions in the specified class",
'c'),
+ PHPDBG_PRINT_D(method, "print out the instructions in the specified method",
'm'),
+ PHPDBG_PRINT_D(func, "print out the instructions in the specified function",
'f'),
{0, 0, 0, 0}
};