mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-17 08:13:02 +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 <ctype.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
@@ -99,7 +98,8 @@ declarator : ID { printf ("\"%s\" ", ]$[1); }
|
|||||||
int
|
int
|
||||||
main (int argc, char** argv)
|
main (int argc, char** argv)
|
||||||
{
|
{
|
||||||
assert (argc == 2);
|
if (argc != 2)
|
||||||
|
abort ();
|
||||||
if (!freopen (argv[1], "r", stdin))
|
if (!freopen (argv[1], "r", stdin))
|
||||||
abort ();
|
abort ();
|
||||||
exit (yyparse ());
|
exit (yyparse ());
|
||||||
|
|||||||
Reference in New Issue
Block a user