mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-18 00:33:03 +00:00
(_AT_DATA_CALC_Y): Do not include <assert.h>.
Replace all instances of assert with abort.
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
]])
|
]])
|
||||||
|
|||||||
Reference in New Issue
Block a user