X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/166366b28f579dfb991f8f6fca323847bcc1eb65..5422d56a718805a2470558808355e04182a12d65:/src/InadequacyList.c diff --git a/src/InadequacyList.c b/src/InadequacyList.c index edf3a0f5..ca37e600 100644 --- a/src/InadequacyList.c +++ b/src/InadequacyList.c @@ -1,6 +1,6 @@ /* IELR's inadequacy list. - Copyright (C) 2009 Free Software Foundation, Inc. + Copyright (C) 2009-2011 Free Software Foundation, Inc. This file is part of Bison, the GNU Compiler Compiler. @@ -27,9 +27,12 @@ ContributionIndex const ContributionIndex__error_action = -2; InadequacyList * InadequacyList__new_conflict (state *manifesting_state, symbol *token, - bitset actions) + bitset actions, + InadequacyListNodeCount *node_count) { InadequacyList *result = xmalloc (sizeof *result); + result->id = (*node_count)++; + aver (*node_count != 0); result->next = NULL; result->manifestingState = manifesting_state; result->contributionCount = bitset_count (actions);