summaryrefslogtreecommitdiffstats
path: root/parser.h
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2014-08-07 06:57:19 -0700
committerKaz Kylheku <kaz@kylheku.com>2014-08-07 06:57:19 -0700
commite76f2a2c79e6ba45a5036888e9bc668fc8324365 (patch)
treea1a54ecef682f08813b7f51396a6c63415d70c7c /parser.h
parent3ef6cb7a6bc3e9ec77ad5ef590f1c7ad8164659a (diff)
downloadtxr-e76f2a2c79e6ba45a5036888e9bc668fc8324365.tar.gz
txr-e76f2a2c79e6ba45a5036888e9bc668fc8324365.tar.bz2
txr-e76f2a2c79e6ba45a5036888e9bc668fc8324365.zip
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.
Diffstat (limited to 'parser.h')
-rw-r--r--parser.h2
1 files changed, 1 insertions, 1 deletions
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);