# include <string.h>
#endif
#include <ctype.h>
-#include <assert.h>
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;
%}
;
%%
/* The input. */
-FILE *yyin;
+static FILE *yyin;
static void
yyerror (]AT_YYERROR_ARG_LOC_IF([YYLTYPE *yylloc, ])[
{
value_t result = 0;
int count = 0;
- int status = 0;
- yyin = NULL;
+ int status;
if (argc == 2)
yyin = fopen (argv[1], "r");
yydebug = 1;
#endif
status = yyparse (]AT_PARAM_IF([&result, &count])[);
- assert (global_result == result);
- assert (global_count == count);
+ if (global_result != result)
+ abort ();
+ if (global_count != count)
+ abort ();
return status;
}
]])