/[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.46 by eggert, Mon Nov 18 07:52:13 2002 UTC revision 1.47 by eggert, Thu Nov 21 05:28:09 2002 UTC
# Line 46  AT_DATA_GRAMMAR([calc.y], Line 46  AT_DATA_GRAMMAR([calc.y],
46  # include <string.h>  # include <string.h>
47  #endif  #endif
48  #include <ctype.h>  #include <ctype.h>
 #include <assert.h>  
49    
50  extern void perror (const char *s);  extern void perror (const char *s);
51    
# Line 308  main (int argc, const char **argv) Line 307  main (int argc, const char **argv)
307    yydebug = 1;    yydebug = 1;
308  #endif  #endif
309    status = yyparse (]AT_PARAM_IF([&result, &count])[);    status = yyparse (]AT_PARAM_IF([&result, &count])[);
310    assert (global_result == result);    if (global_result != result)
311    assert (global_count  == count);      abort ();
312      if (global_count != count)
313        abort ();
314    return status;    return status;
315  }  }
316  ]])  ]])

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

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