X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/e41dc70020f5101795c601729594de8661d616e2..280a38c306200177ef15e0f52775312edc057065:/src/symtab.c diff --git a/src/symtab.c b/src/symtab.c index c701ccd6..76ed52be 100644 --- a/src/symtab.c +++ b/src/symtab.c @@ -1,5 +1,5 @@ /* Symbol table manager for Bison, - Copyright 1984, 1989, 2000, 2001 Free Software Foundation, Inc. + Copyright 1984, 1989, 2000, 2001, 2002 Free Software Foundation, Inc. This file is part of Bison, the GNU Compiler Compiler. @@ -49,22 +49,18 @@ hash (const char *key) static bucket * bucket_new (const char *tag, int hashval) { - /* Hack, until we have a Bison parser. */ - extern int lineno; - bucket *res = XMALLOC (bucket, 1); res->link = symtab[hashval]; res->next = NULL; res->tag = xstrdup (tag); res->type_name = NULL; - res->value = 0; + res->number = -1; res->prec = 0; res->assoc = right_assoc; res->user_token_number = SUNDEF; res->alias = NULL; res->class = unknown_sym; - res->line = lineno; nsyms++;