changeset 27004:b12d5ef8b4f4

move toward limiting direct access of call stack * ov-fcn-handle.cc (octave_fcn_handle::load_hdf5): Use new tree_evaluator functions to manage dummy scope instead of accessing call_stack directly. Missed in previous change.
author John W. Eaton <jwe@octave.org>
date Fri, 29 Mar 2019 20:44:26 +0000
parents 2a57165f892c
children a1ea0e7aecde
files libinterp/octave-value/ov-fcn-handle.cc
diffstat 1 files changed, 3 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/octave-value/ov-fcn-handle.cc	Fri Jan 11 21:24:26 2019 -0500
+++ b/libinterp/octave-value/ov-fcn-handle.cc	Fri Mar 29 20:44:26 2019 +0000
@@ -1406,11 +1406,10 @@
       octave::interpreter& interp
         = octave::__get_interpreter__ ("octave_fcn_handle::load_hdf5");
 
-      octave::call_stack& cs = interp.get_call_stack ();
+      octave::tree_evaluator& tw = interp.get_evaluator ();
 
-      octave::symbol_scope local_scope (fcn_tmp);
-      cs.push (local_scope);
-      frame.add_method (cs, &octave::call_stack::pop);
+      tw.push_dummy_scope (fcn_tmp);
+      frame.add_method (tw, &octave::tree_evaluator::pop_scope);
 
       if (len > 0 && success)
         {
@@ -1440,8 +1439,6 @@
 
       if (success)
         success = parse_anon_fcn_handle (fcn_tmp);
-
-      frame.run ();
     }
   else
     {