From e76f2a2c79e6ba45a5036888e9bc668fc8324365 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Thu, 7 Aug 2014 06:57:19 -0700 Subject: Reentrant parser regression. * parser.y (yybadtok): New macro. (yybadtoken): Function must take parser argument. (grammar): Replace uses of yybadtoken with yybadtok. * parser.h (yybadtoken): Declaration updated. * parser.l (grammar): Fix incorrect yyprepf calls that are missing the yyscanner parameter. --- parser.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'parser.h') diff --git a/parser.h b/parser.h index 5f4b2589..11801e5e 100644 --- a/parser.h +++ b/parser.h @@ -40,7 +40,7 @@ int yyparse(parser_t *, void *scanner); void yyerror(parser_t *, void *scanner, const char *s); void yyerr(void *scanner, const char *s); void yyerrorf(void *scanner, val s, ...); -void yybadtoken(int tok, val context); +void yybadtoken(parser_t *, int tok, val context); void end_of_regex(void *scanner); void end_of_char(void *scanner); int yylex_init(void **pscanner); -- cgit v1.2.3