# HG changeset patch # User jwe # Date 1037666020 0 # Node ID bf9c5ca4c3f34e67970353c52df2712e947a6bcf # Parent 8f6d418d31c322dfc48b9393c4a1503c11d82a78 [project @ 2002-11-19 00:33:40 by jwe] diff -r 8f6d418d31c3 -r bf9c5ca4c3f3 src/ChangeLog --- a/src/ChangeLog Fri Nov 15 23:22:27 2002 +0000 +++ b/src/ChangeLog Tue Nov 19 00:33:40 2002 +0000 @@ -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 -r 8f6d418d31c3 -r bf9c5ca4c3f3 src/lex.l --- a/src/lex.l Fri Nov 15 23:22:27 2002 +0000 +++ b/src/lex.l Tue Nov 19 00:33:40 2002 +0000 @@ -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 -r 8f6d418d31c3 -r bf9c5ca4c3f3 src/parse.h --- a/src/parse.h Fri Nov 15 23:22:27 2002 +0000 +++ b/src/parse.h Tue Nov 19 00:33:40 2002 +0000 @@ -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 -r 8f6d418d31c3 -r bf9c5ca4c3f3 src/parse.y --- a/src/parse.y Fri Nov 15 23:22:27 2002 +0000 +++ b/src/parse.y Tue Nov 19 00:33:40 2002 +0000 @@ -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.