/* IELR's inadequacy list.
- Copyright (C) 2009 Free Software Foundation, Inc.
+ Copyright (C) 2009-2015 Free Software Foundation, Inc.
This file is part of Bison, the GNU Compiler Compiler.
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);
InadequacyList__getContributionToken (InadequacyList const *self,
ContributionIndex i)
{
- aver (0 <= i && i < self->contributionCount);
+ aver (0 <= i && i < self->contributionCount); (void) i;
return self->inadequacy.conflict.token;
}