* src/symtab.h, src/symtab.c: line' is a new member of bucket'.

* src/reader.c (record_rule_lines, rline, rline_allocated): Remove.
* src/output.c: Adjust.
This commit is contained in:
Akim Demaille
2001-11-19 10:26:16 +00:00
parent 652a871c29
commit e41dc70020
6 changed files with 31 additions and 25 deletions

View File

@@ -49,6 +49,9 @@ 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];
@@ -61,6 +64,7 @@ bucket_new (const char *tag, int hashval)
res->user_token_number = SUNDEF;
res->alias = NULL;
res->class = unknown_sym;
res->line = lineno;
nsyms++;