(packgram, reader): Use abort rather than assert.

This commit is contained in:
Paul Eggert
2002-11-21 05:20:49 +00:00
parent a932883e41
commit 35dcf428c9

View File

@@ -1,4 +1,4 @@
/* Input parser for bison /* Input parser for Bison
Copyright (C) 1984, 1986, 1989, 1992, 1998, 2000, 2001, 2002 Copyright (C) 1984, 1986, 1989, 1992, 1998, 2000, 2001, 2002
Free Software Foundation, Inc. Free Software Foundation, Inc.
@@ -452,7 +452,8 @@ packgram (void)
p = p->next; p = p->next;
} }
assert (itemno == nritems); if (itemno != nritems)
abort ();
if (trace_flag & trace_sets) if (trace_flag & trace_sets)
ritem_print (stderr); ritem_print (stderr);
@@ -539,8 +540,8 @@ reader (void)
grammar = p; grammar = p;
} }
assert (nsyms <= SYMBOL_NUMBER_MAX); if (! (nsyms <= SYMBOL_NUMBER_MAX && nsyms == ntokens + nvars))
assert (nsyms == ntokens + nvars); abort ();
xfclose (finput); xfclose (finput);