mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-19 01:03:04 +00:00
style: rename function for clarity
Commit db34f79889 renames the variable F
as goto_follows, but forgot to rename this function.
* src/lalr.c (initialize_F): Rename as...
(initialize_goto_follows): this.
This commit is contained in:
@@ -158,7 +158,7 @@ map_goto (state_number src, symbol_number sym)
|
|||||||
|
|
||||||
/* Build goto_follows. */
|
/* Build goto_follows. */
|
||||||
static void
|
static void
|
||||||
initialize_F (void)
|
initialize_goto_follows (void)
|
||||||
{
|
{
|
||||||
goto_number **reads = xnmalloc (ngotos, sizeof *reads);
|
goto_number **reads = xnmalloc (ngotos, sizeof *reads);
|
||||||
goto_number *edge = xnmalloc (ngotos + 1, sizeof *edge);
|
goto_number *edge = xnmalloc (ngotos + 1, sizeof *edge);
|
||||||
@@ -457,7 +457,7 @@ lalr (void)
|
|||||||
{
|
{
|
||||||
initialize_LA ();
|
initialize_LA ();
|
||||||
set_goto_map ();
|
set_goto_map ();
|
||||||
initialize_F ();
|
initialize_goto_follows ();
|
||||||
lookback = xcalloc (nLA, sizeof *lookback);
|
lookback = xcalloc (nLA, sizeof *lookback);
|
||||||
build_relations ();
|
build_relations ();
|
||||||
compute_follows ();
|
compute_follows ();
|
||||||
|
|||||||
Reference in New Issue
Block a user