]> git.saurik.com Git - bison.git/blobdiff - src/InadequacyList.c
portability: `<' and `>' are not always defined on addresses.
[bison.git] / src / InadequacyList.c
index edf3a0f585b11158c6ba2319a70ccbf3aebd4941..a79233e4e705801d3a5d2dd6907f1e48511ddb9b 100644 (file)
@@ -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);