diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2014-08-07 07:13:42 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2014-08-07 07:13:42 -0700 |
commit | c293139b066d728ad68d48dfe25292e72621645d (patch) | |
tree | 65b92ee9021cbca562cad21adc5420981f61738d /parser.l | |
parent | e76f2a2c79e6ba45a5036888e9bc668fc8324365 (diff) | |
download | txr-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.l | 5 |
1 files changed, 0 insertions, 5 deletions
@@ -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); |