diff src/variables.cc @ 9396:17af7cce7d1b

yet more unwind_protect improvements
author Jaroslav Hajek <highegg@gmail.com>
date Thu, 25 Jun 2009 13:57:38 +0200
parents 1de00ca9c9f2
children c5f03874ea2a
line wrap: on
line diff
--- a/src/variables.cc
+++ b/src/variables.cc
@@ -1389,14 +1389,14 @@
 	      // Set up temporary scope.
 
 	      symbol_table::scope_id tmp_scope = symbol_table::alloc_scope ();
-	      unwind_protect::add_action_var (symbol_table::erase_scope, tmp_scope);
+	      unwind_protect::add_fcn (symbol_table::erase_scope, tmp_scope);
 
 	      symbol_table::set_scope (tmp_scope);
 
 	      octave_call_stack::push (tmp_scope, 0);
-	      unwind_protect::add (octave_call_stack::unwind_pop, 0);
+	      unwind_protect::add_fcn (octave_call_stack::pop);
 
-	      unwind_protect::add (symbol_table::clear_variables);
+	      unwind_protect::add_fcn (symbol_table::clear_variables);
 
 	      feval ("load", octave_value (nm), 0);