mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 20:33:03 +00:00
* src/reader.c (symbol_list_new): Be sure to initialize all the
fields.
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
2001-12-27 Akim Demaille <akim@epita.fr>
|
||||
|
||||
* src/reader.c (symbol_list_new): Be sure to initialize all the
|
||||
fields.
|
||||
|
||||
2001-12-27 Akim Demaille <akim@epita.fr>
|
||||
|
||||
All the hacks using a final pseudo state are now useless.
|
||||
|
||||
@@ -44,8 +44,7 @@ typedef struct symbol_list
|
||||
const char *action;
|
||||
int action_line;
|
||||
bucket *ruleprec;
|
||||
}
|
||||
symbol_list;
|
||||
} symbol_list;
|
||||
|
||||
int lineno;
|
||||
char **tags;
|
||||
@@ -75,6 +74,8 @@ symbol_list_new (bucket *sym)
|
||||
res->next = NULL;
|
||||
res->sym = sym;
|
||||
res->line = lineno;
|
||||
res->action = NULL;
|
||||
res->action_line = 0;
|
||||
res->ruleprec = NULL;
|
||||
return res;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user