summaryrefslogtreecommitdiff
path: root/sapi/phpdbg/phpdbg_parser.y
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2014-12-16 12:56:00 +0100
committerAnatol Belski <ab@php.net>2014-12-16 12:56:00 +0100
commit89f87576a1fe9a5839fb239150642b228418d389 (patch)
tree0cf1abe9fd6e324d6c7e34192854e6b7d311d445 /sapi/phpdbg/phpdbg_parser.y
parent9d70df24f8a35e7706d629151f43fc0757eb5f58 (diff)
downloadphp-git-89f87576a1fe9a5839fb239150642b228418d389.tar.gz
various fixes for removing explicit tsrm_ls usage
Diffstat (limited to 'sapi/phpdbg/phpdbg_parser.y')
-rw-r--r--sapi/phpdbg/phpdbg_parser.y10
1 files changed, 2 insertions, 8 deletions
diff --git a/sapi/phpdbg/phpdbg_parser.y b/sapi/phpdbg/phpdbg_parser.y
index e0bd2f89e2..18d23b834f 100644
--- a/sapi/phpdbg/phpdbg_parser.y
+++ b/sapi/phpdbg/phpdbg_parser.y
@@ -19,7 +19,7 @@
#include "phpdbg_lexer.h"
#undef yyerror
-static int yyerror(void ***tsrm_ls, const char *msg);
+static int yyerror(const char *msg);
ZEND_EXTERN_MODULE_GLOBALS(phpdbg);
@@ -36,8 +36,6 @@ typedef void* yyscan_t;
#endif
}
-%parse-param { void *tsrm_ls }
-
%output "sapi/phpdbg/phpdbg_parser.c"
%defines "sapi/phpdbg/phpdbg_parser.h"
@@ -166,7 +164,7 @@ full_expression
%%
-static int yyerror(void ***tsrm_ls, const char *msg) {
+static int yyerror(const char *msg) {
phpdbg_error("command", "type=\"parseerror\" msg=\"%s\"", "Parse Error: %s", msg);
{
@@ -183,9 +181,5 @@ static int yyerror(void ***tsrm_ls, const char *msg) {
int phpdbg_do_parse(phpdbg_param_t *stack, char *input) {
phpdbg_init_lexer(stack, input);
-#ifdef ZTS
return yyparse();
-#else
- return yyparse(NULL);
-#endif
}