X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/1e0bab92768860bfecd95f01227df9b1c25da2cb..56c47203421107ee019a20f3b56cfb967ad75bd2:/src/parse-gram.y diff --git a/src/parse-gram.y b/src/parse-gram.y index aa1d2b51..46ccb54e 100644 --- a/src/parse-gram.y +++ b/src/parse-gram.y @@ -34,6 +34,7 @@ #include "files.h" #include "getargs.h" #include "output.h" +#include "symlist.h" #include "gram.h" #include "reader.h" #include "conflicts.h" @@ -88,7 +89,7 @@ int current_prec = 0; %union { symbol_t *symbol; - symbol_list *list; + symbol_list_t *list; int integer; char *string; associativity assoc; @@ -214,24 +215,24 @@ symbol_declaration: } | "%type" TYPE symbols.1 { - symbol_list *list; + symbol_list_t *list; for (list = $3; list; list = list->next) symbol_type_set (list->sym, list->location, $2); - LIST_FREE (symbol_list, $3); + LIST_FREE (symbol_list_t, $3); } ; precedence_declaration: precedence_declarator type.opt symbols.1 { - symbol_list *list; + symbol_list_t *list; ++current_prec; for (list = $3; list; list = list->next) { symbol_type_set (list->sym, list->location, current_type); symbol_precedence_set (list->sym, list->location, current_prec, $1); } - LIST_FREE (symbol_list, $3); + LIST_FREE (symbol_list_t, $3); current_type = NULL; } ;