mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-11 13:23:04 +00:00
lalr: clarify the API
* src/state.h, src/state.c (state_reduction_find): Clarify. Die on errors. * src/lalr.c (goto_list_new): New. Use it.
This commit is contained in:
@@ -218,7 +218,7 @@ state_reduction_find (state *s, rule const *r)
|
||||
for (int i = 0; i < reds->num; ++i)
|
||||
if (reds->rules[i] == r)
|
||||
return i;
|
||||
return -1;
|
||||
abort ();
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user