diff src/ov-fcn-handle.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 f008a3a1bcb0
line wrap: on
line diff
--- a/src/ov-fcn-handle.cc	Thu Jun 25 11:41:46 2009 +0200
+++ b/src/ov-fcn-handle.cc	Thu Jun 25 13:57:38 2009 +0200
@@ -319,12 +319,12 @@
       // defines the anonymous function.
 
       symbol_table::scope_id local_scope = symbol_table::alloc_scope ();
-      unwind_protect::add_action_var (symbol_table::erase_scope, local_scope);
+      unwind_protect::add_fcn (symbol_table::erase_scope, local_scope);
 
       symbol_table::set_scope (local_scope);
 
       octave_call_stack::push (local_scope, 0);
-      unwind_protect::add (octave_call_stack::unwind_pop, 0);
+      unwind_protect::add_fcn (octave_call_stack::pop);
 
       octave_idx_type len = 0;
 
@@ -500,12 +500,12 @@
       // defines the anonymous function.
 
       symbol_table::scope_id local_scope = symbol_table::alloc_scope ();
-      unwind_protect::add_action_var (symbol_table::erase_scope, local_scope);	      
+      unwind_protect::add_fcn (symbol_table::erase_scope, local_scope);	      
 
       symbol_table::set_scope (local_scope);
 
       octave_call_stack::push (local_scope, 0);
-      unwind_protect::add (octave_call_stack::unwind_pop, 0);
+      unwind_protect::add_fcn (octave_call_stack::pop);
 
       if (len > 0)
 	{
@@ -945,12 +945,12 @@
       // defines the anonymous function.
 
       symbol_table::scope_id local_scope = symbol_table::alloc_scope ();
-      unwind_protect::add_action_var (symbol_table::erase_scope, local_scope);
+      unwind_protect::add_fcn (symbol_table::erase_scope, local_scope);
 
       symbol_table::set_scope (local_scope);
 
       octave_call_stack::push (local_scope, 0);
-      unwind_protect::add (octave_call_stack::unwind_pop, 0);
+      unwind_protect::add_fcn (octave_call_stack::pop);
 
       if (len > 0 && success)
 	{