# HG changeset patch # User jwe # Date 1037666020 0 # Node ID bf9c5ca4c3f34e67970353c52df2712e947a6bcf # Parent 8f6d418d31c322dfc48b9393c4a1503c11d82a78 [project @ 2002-11-19 00:33:40 by jwe] diff --git a/src/ChangeLog b/src/ChangeLog --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,9 @@ +2002-11-18 John W. Eaton + + * parse.y (symtab_context): Now extern. + * parse.h: Provide decl. + * lex.l (reset_parser): Set it to 0. + 2002-11-15 John W. Eaton * pt-bp.cc (octave_debug_on_interrupt_state): New global variable. diff --git a/src/lex.l b/src/lex.l --- a/src/lex.l +++ b/src/lex.l @@ -808,6 +808,7 @@ error_state = 0; warning_state = 0; parser_end_of_input = false; + symtab_context = 0; // We do want a prompt by default. promptflag = 1; diff --git a/src/parse.h b/src/parse.h --- a/src/parse.h +++ b/src/parse.h @@ -74,6 +74,9 @@ // an eval() statement. extern bool evaluating_function_body; +// Keep track of symbol table information when parsing functions. +extern symbol_table *symtab_context; + // TRUE means warn about function files that have time stamps in the future. extern bool Vwarn_future_time_stamp; diff --git a/src/parse.y b/src/parse.y --- a/src/parse.y +++ b/src/parse.y @@ -134,7 +134,7 @@ bool evaluating_function_body = false; // Keep track of symbol table information when parsing functions. -static symbol_table *symtab_context = 0; +symbol_table *symtab_context = 0; // Forward declarations for some functions defined at the bottom of // the file.