From 4e8c79eb7ff24dd31ce7d1f6be8a164aea505185 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Mon, 18 Nov 2002 07:52:13 +0000 Subject: [PATCH] (_AT_DATA_CALC_Y): Make vars static instead of extern when possible. Remove unused initializations. --- tests/calc.at | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/tests/calc.at b/tests/calc.at index e79cdb2e..d566c1db 100644 --- a/tests/calc.at +++ b/tests/calc.at @@ -53,8 +53,8 @@ extern void perror (const char *s); /* Exercise pre-prologue dependency to %union. */ typedef int value_t; -value_t global_result = 0; -int global_count = 0; +static value_t global_result = 0; +static int global_count = 0; %} @@ -146,7 +146,7 @@ exp: ; %% /* The input. */ -FILE *yyin; +static FILE *yyin; static void yyerror (]AT_YYERROR_ARG_LOC_IF([YYLTYPE *yylloc, ])[ @@ -291,8 +291,7 @@ main (int argc, const char **argv) { value_t result = 0; int count = 0; - int status = 0; - yyin = NULL; + int status; if (argc == 2) yyin = fopen (argv[1], "r"); -- 2.45.2