summaryrefslogtreecommitdiffstats
path: root/parser.l
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2014-08-07 07:13:42 -0700
committerKaz Kylheku <kaz@kylheku.com>2014-08-07 07:13:42 -0700
commitc293139b066d728ad68d48dfe25292e72621645d (patch)
tree65b92ee9021cbca562cad21adc5420981f61738d /parser.l
parente76f2a2c79e6ba45a5036888e9bc668fc8324365 (diff)
downloadtxr-c293139b066d728ad68d48dfe25292e72621645d.tar.gz
txr-c293139b066d728ad68d48dfe25292e72621645d.tar.bz2
txr-c293139b066d728ad68d48dfe25292e72621645d.zip
* parser.l (yyerr): Function removed; it is not used in the lexer,
and converted to a macro in the parser. * parser.y (define_transform): take a parser argument rather than scanner. Set up scnr local variable for yyerr macro. Remove scnr argument from macro calls. (yyerr): New macro. (grammar): Remove scnr argument from yyerr calls.
Diffstat (limited to 'parser.l')
-rw-r--r--parser.l5
1 files changed, 0 insertions, 5 deletions
diff --git a/parser.l b/parser.l
index 44f4f54a..0a19110a 100644
--- a/parser.l
+++ b/parser.l
@@ -87,11 +87,6 @@ void yyerror(parser_t *parser, void *scanner, const char *s)
}
}
-void yyerr(void *scanner, const char *s)
-{
- yyerror(yyget_extra(scanner), scanner, s);
-}
-
void yyerrorf(void *scanner, val fmt, ...)
{
parser_t *parser = yyget_extra(scanner);