changeset 4186:bf9c5ca4c3f3

[project @ 2002-11-19 00:33:40 by jwe]
author jwe
date Tue, 19 Nov 2002 00:33:40 +0000
parents 8f6d418d31c3
children dda53b247bc8
files src/ChangeLog src/lex.l src/parse.h src/parse.y
diffstat 4 files changed, 11 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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  <jwe@bevo.che.wisc.edu>
+
+	* parse.y (symtab_context): Now extern.
+	* parse.h: Provide decl.
+	* lex.l (reset_parser): Set it to 0.
+
 2002-11-15  John W. Eaton  <jwe@bevo.che.wisc.edu>
 
 	* pt-bp.cc (octave_debug_on_interrupt_state): New global variable.
--- 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;
--- 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;
 
--- 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.