/[bison]/bison/tests/calc.at
ViewVC logotype

Diff of /bison/tests/calc.at

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.45 by eggert, Fri Nov 15 20:32:21 2002 UTC revision 1.46 by eggert, Mon Nov 18 07:52:13 2002 UTC
# Line 53  extern void perror (const char *s); Line 53  extern void perror (const char *s);
53  /* Exercise pre-prologue dependency to %union.  */  /* Exercise pre-prologue dependency to %union.  */
54  typedef int value_t;  typedef int value_t;
55    
56  value_t global_result = 0;  static value_t global_result = 0;
57  int global_count = 0;  static int global_count = 0;
58    
59  %}  %}
60    
# Line 146  exp: Line 146  exp:
146  ;  ;
147  %%  %%
148  /* The input. */  /* The input. */
149  FILE *yyin;  static FILE *yyin;
150    
151  static void  static void
152  yyerror (]AT_YYERROR_ARG_LOC_IF([YYLTYPE *yylloc, ])[  yyerror (]AT_YYERROR_ARG_LOC_IF([YYLTYPE *yylloc, ])[
# Line 291  main (int argc, const char **argv) Line 291  main (int argc, const char **argv)
291  {  {
292    value_t result = 0;    value_t result = 0;
293    int count = 0;    int count = 0;
294    int status = 0;    int status;
   yyin = NULL;  
295    
296    if (argc == 2)    if (argc == 2)
297      yyin = fopen (argv[1], "r");      yyin = fopen (argv[1], "r");

Legend:
Removed from v.1.45  
changed lines
  Added in v.1.46

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26