mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-17 00:03:03 +00:00
(_AT_DATA_CALC_Y): Make vars static instead of
extern when possible. Remove unused initializations.
This commit is contained in:
@@ -53,8 +53,8 @@ extern void perror (const char *s);
|
|||||||
/* Exercise pre-prologue dependency to %union. */
|
/* Exercise pre-prologue dependency to %union. */
|
||||||
typedef int value_t;
|
typedef int value_t;
|
||||||
|
|
||||||
value_t global_result = 0;
|
static value_t global_result = 0;
|
||||||
int global_count = 0;
|
static int global_count = 0;
|
||||||
|
|
||||||
%}
|
%}
|
||||||
|
|
||||||
@@ -146,7 +146,7 @@ exp:
|
|||||||
;
|
;
|
||||||
%%
|
%%
|
||||||
/* The input. */
|
/* The input. */
|
||||||
FILE *yyin;
|
static FILE *yyin;
|
||||||
|
|
||||||
static void
|
static void
|
||||||
yyerror (]AT_YYERROR_ARG_LOC_IF([YYLTYPE *yylloc, ])[
|
yyerror (]AT_YYERROR_ARG_LOC_IF([YYLTYPE *yylloc, ])[
|
||||||
@@ -291,8 +291,7 @@ main (int argc, const char **argv)
|
|||||||
{
|
{
|
||||||
value_t result = 0;
|
value_t result = 0;
|
||||||
int count = 0;
|
int count = 0;
|
||||||
int status = 0;
|
int status;
|
||||||
yyin = NULL;
|
|
||||||
|
|
||||||
if (argc == 2)
|
if (argc == 2)
|
||||||
yyin = fopen (argv[1], "r");
|
yyin = fopen (argv[1], "r");
|
||||||
|
|||||||
Reference in New Issue
Block a user