From 41a3348294540a782e42f4624a1a43fcc14ec041 Mon Sep 17 00:00:00 2001 From: Miguel de Icaza Date: Wed, 28 Oct 1998 21:42:51 +0000 Subject: [PATCH] Updated to use the new symbol table. 1998-10-28 Miguel de Icaza * src/parser.y (dump_tree): Updated to use the new symbol table. --- ChangeLog-1999-07-09 | 4 ++++ ChangeLog-2000-02-23 | 4 ++++ OChangeLog-1999-07-09 | 4 ++++ OChangeLog-2000-02-23 | 4 ++++ src/parser.y | 4 ++-- 5 files changed, 18 insertions(+), 2 deletions(-) diff --git a/ChangeLog-1999-07-09 b/ChangeLog-1999-07-09 index 97f1e245c..16b43dbed 100644 --- a/ChangeLog-1999-07-09 +++ b/ChangeLog-1999-07-09 @@ -1,3 +1,7 @@ +1998-10-28 Miguel de Icaza + + * src/parser.y (dump_tree): Updated to use the new symbol table. + 1998-10-27 Miguel de Icaza * src/parser.c (dump_tree): Use extra argument. diff --git a/ChangeLog-2000-02-23 b/ChangeLog-2000-02-23 index 97f1e245c..16b43dbed 100644 --- a/ChangeLog-2000-02-23 +++ b/ChangeLog-2000-02-23 @@ -1,3 +1,7 @@ +1998-10-28 Miguel de Icaza + + * src/parser.y (dump_tree): Updated to use the new symbol table. + 1998-10-27 Miguel de Icaza * src/parser.c (dump_tree): Use extra argument. diff --git a/OChangeLog-1999-07-09 b/OChangeLog-1999-07-09 index 97f1e245c..16b43dbed 100644 --- a/OChangeLog-1999-07-09 +++ b/OChangeLog-1999-07-09 @@ -1,3 +1,7 @@ +1998-10-28 Miguel de Icaza + + * src/parser.y (dump_tree): Updated to use the new symbol table. + 1998-10-27 Miguel de Icaza * src/parser.c (dump_tree): Use extra argument. diff --git a/OChangeLog-2000-02-23 b/OChangeLog-2000-02-23 index 97f1e245c..16b43dbed 100644 --- a/OChangeLog-2000-02-23 +++ b/OChangeLog-2000-02-23 @@ -1,3 +1,7 @@ +1998-10-28 Miguel de Icaza + + * src/parser.y (dump_tree): Updated to use the new symbol table. + 1998-10-27 Miguel de Icaza * src/parser.c (dump_tree): Use extra argument. diff --git a/src/parser.y b/src/parser.y index e3d75d315..3a621a2f9 100644 --- a/src/parser.y +++ b/src/parser.y @@ -307,7 +307,7 @@ return_symbol (char *string) int type; e->ref_count = 1; - sym = symbol_lookup (string); + sym = symbol_lookup (global_symbol_table, string); type = STRING; if (!sym) @@ -681,7 +681,7 @@ dump_tree (ExprTree *tree) return; case OPER_FUNCALL: - s = symbol_lookup (tree->u.function.symbol->str); + s = symbol_lookup (global_symbol_table, tree->u.function.symbol->str); printf ("Function call: %s\n", s->str); break; -- GitLab