/* 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.
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++;