diff libinterp/parse-tree/pt-eval.cc @ 15469:72868cae7624

eliminate some deprecated function warnings * input.cc, load-path.cc, ov-oncleanup.cc, oct-parse.yy, pt-eval.cc: Eliminate calls to unwind_protect::run_top and unwind_protect::discard_top.
author John W. Eaton <jwe@octave.org>
date Mon, 01 Oct 2012 18:32:31 -0400
parents 049e8bbff782
children d20cbfec6df7 6ea536cb7360
line wrap: on
line diff
--- a/libinterp/parse-tree/pt-eval.cc
+++ b/libinterp/parse-tree/pt-eval.cc
@@ -990,11 +990,11 @@
 
   if (tree_break_command::breaking || tree_return_command::returning)
     {
-      frame.discard_top (2);
+      frame.discard (2);
     }
   else
     {
-      frame.run_top (2);
+      frame.run (2);
     }
 
   // We don't want to ignore errors that occur in the cleanup code, so
@@ -1002,9 +1002,9 @@
   // Otherwise, set it back to what it was before.
 
   if (error_state)
-    frame.discard_top (2);
+    frame.discard (2);
   else
-    frame.run_top (2);
+    frame.run (2);
 
   frame.run ();
 }