mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-12 05:43:03 +00:00
Clean up yesterday's patch.
* parse-gram.y (rhs): Move grammar_midrule_action invocation from here to... * src/reader.c (grammar_current_rule_action_append): ... here for consistency with grammar_current_rule_symbol_append. * tests/regression.at (Braced code in declaration in rules section): Make yyerror and yylex static as usual.
This commit is contained in:
@@ -1019,8 +1019,8 @@ AT_SETUP([Braced code in declaration in rules section])
|
||||
AT_DATA_GRAMMAR([input.y],
|
||||
[[%{
|
||||
#include <stdio.h>
|
||||
void yyerror (char const *msg);
|
||||
int yylex (void);
|
||||
static void yyerror (char const *msg);
|
||||
static int yylex (void);
|
||||
%}
|
||||
|
||||
%error-verbose
|
||||
@@ -1039,13 +1039,13 @@ start:
|
||||
|
||||
%%
|
||||
|
||||
void
|
||||
static void
|
||||
yyerror (char const *msg)
|
||||
{
|
||||
fprintf (stderr, "%s\n", msg);
|
||||
}
|
||||
|
||||
int
|
||||
static int
|
||||
yylex (void)
|
||||
{
|
||||
return 'a';
|
||||
|
||||
Reference in New Issue
Block a user