diff src/ov-usr-fcn.h @ 7968:0d607e8dbbfa

eliminate curr_parent_function; fix subfunction lookup
author John W. Eaton <jwe@octave.org>
date Wed, 23 Jul 2008 17:16:50 -0400
parents 8447a5024650
children 3100283874d7
line wrap: on
line diff
--- a/src/ov-usr-fcn.h	Tue Jul 22 17:24:17 2008 -0400
+++ b/src/ov-usr-fcn.h	Wed Jul 23 17:16:50 2008 -0400
@@ -197,6 +197,8 @@
 
   void stash_parent_fcn_name (const std::string& p) { parent_name = p; }
 
+  void stash_parent_fcn_scope (symbol_table::scope_id ps) { parent_scope = ps; }
+
   void stash_leading_comment (octave_comment_list *lc) { lead_comm = lc; }
 
   void stash_trailing_comment (octave_comment_list *tc) { trail_comm = tc; }
@@ -213,6 +215,8 @@
 
   std::string parent_fcn_name (void) const { return parent_name; }
 
+  symbol_table::scope_id parent_fcn_scope (void) const { return parent_scope; }
+
   symbol_table::scope_id scope (void) { return local_scope; }
 
   octave_time time_parsed (void) const { return t_parsed; }
@@ -380,6 +384,9 @@
   // The number of arguments passed in.
   int num_args_passed;
 
+  // The scope of the parent function, if any.
+  symbol_table::scope_id parent_scope;
+
   symbol_table::scope_id local_scope;
 
 #if 0