mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-16 07:43:03 +00:00
symbols: set tag_seen when assigning a type to symbols
* src/reader.h, src/reader.c (tag_seen): Move to... * src/symtab.h, src/symtab.c: here. (symbol_type_set): Set it to true. * src/parse-gram.y: Don't.
This commit is contained in:
@@ -417,7 +417,6 @@ symbol_declaration:
|
||||
}
|
||||
| "%type" TAG symbols.1
|
||||
{
|
||||
tag_seen = true;
|
||||
for (symbol_list *list = $3; list; list = list->next)
|
||||
symbol_type_set (list->content.sym, $2, @2);
|
||||
symbol_list_free ($3);
|
||||
@@ -446,7 +445,7 @@ precedence_declarator:
|
||||
|
||||
tag.opt:
|
||||
%empty { $$ = NULL; }
|
||||
| TAG { $$ = $1; tag_seen = true; }
|
||||
| TAG { $$ = $1; }
|
||||
;
|
||||
|
||||
/* Just like symbols.1 but accept INT for the sake of POSIX. */
|
||||
@@ -496,7 +495,6 @@ symbol_def:
|
||||
TAG
|
||||
{
|
||||
current_type = $1;
|
||||
tag_seen = true;
|
||||
}
|
||||
| id int.opt[num] string_as_id.opt[alias]
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user