(_AT_DATA_CALC_Y): Do not include <assert.h>.

Replace all instances of assert with abort.
This commit is contained in:
Paul Eggert
2002-11-21 05:28:09 +00:00
parent 7a86d7eba9
commit 63d0fb9ce4

View File

@@ -46,7 +46,6 @@ AT_DATA_GRAMMAR([calc.y],
# include <string.h> # include <string.h>
#endif #endif
#include <ctype.h> #include <ctype.h>
#include <assert.h>
extern void perror (const char *s); extern void perror (const char *s);
@@ -308,8 +307,10 @@ main (int argc, const char **argv)
yydebug = 1; yydebug = 1;
#endif #endif
status = yyparse (]AT_PARAM_IF([&result, &count])[); status = yyparse (]AT_PARAM_IF([&result, &count])[);
assert (global_result == result); if (global_result != result)
assert (global_count == count); abort ();
if (global_count != count)
abort ();
return status; return status;
} }
]]) ]])