Mercurial > hg > octave-max
changeset 120:5a7e0475450a
[project @ 1993-09-21 20:34:09 by jwe]
(lookup_identifier): Look in current scope first.
author | jwe |
---|---|
date | Tue, 21 Sep 1993 20:34:09 +0000 |
parents | 32de07939aa7 |
children | 659b6f4996da |
files | src/lex.l |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lex.l +++ b/src/lex.l @@ -1097,8 +1097,11 @@ static symbol_record * lookup_identifier (char *name) { + symbol_record *lsr = curr_sym_tab->lookup (name, 0, 0); + if (lsr != (symbol_record *) NULL) + return lsr; + symbol_record *gsr = global_sym_tab->lookup (name, 0, 0); - if (curr_sym_tab == top_level_sym_tab && gsr != (symbol_record *) NULL) return gsr;