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:
Joel E. Denny
2006-06-25 06:59:54 +00:00
parent 4210cd0bfc
commit 381ecb0687
5 changed files with 31 additions and 27 deletions

View File

@@ -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';