mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
(_AT_TEST_GLR_CXXTYPES): Do not include <assert.h>.
Replace all instances of assert with abort.
This commit is contained in:
@@ -91,7 +91,6 @@ declarator : ID { printf ("\"%s\" ", ]$[1); }
|
||||
|
||||
%%
|
||||
|
||||
#include <assert.h>
|
||||
#include <ctype.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
@@ -99,7 +98,8 @@ declarator : ID { printf ("\"%s\" ", ]$[1); }
|
||||
int
|
||||
main (int argc, char** argv)
|
||||
{
|
||||
assert (argc == 2);
|
||||
if (argc != 2)
|
||||
abort ();
|
||||
if (!freopen (argv[1], "r", stdin))
|
||||
abort ();
|
||||
exit (yyparse ());
|
||||
|
||||
Reference in New Issue
Block a user