Mercurial > octave-nkf
diff src/pr-output.cc @ 10066:2cd940306a06
make unwind_protect frames local
author | Jaroslav Hajek <highegg@gmail.com> |
---|---|
date | Wed, 06 Jan 2010 13:18:41 +0100 |
parents | 09da0bd91412 |
children | 829e69ec3110 |
line wrap: on
line diff
--- a/src/pr-output.cc Tue Jan 05 13:16:16 2010 +0100 +++ b/src/pr-output.cc Wed Jan 06 13:18:41 2010 +0100 @@ -3205,9 +3205,9 @@ print_usage (); else { - unwind_protect::frame_id_t uwp_frame = unwind_protect::begin_frame (); - - unwind_protect::protect_var (rat_string_len); + unwind_protect frame; + + frame.protect_var (rat_string_len); rat_string_len = 9; @@ -3220,7 +3220,7 @@ if (arg.is_numeric_type ()) { - unwind_protect::protect_var (rat_format); + frame.protect_var (rat_format); rat_format = true; @@ -3254,8 +3254,6 @@ else error ("rats: expecting numeric input"); } - - unwind_protect::run_frame (uwp_frame); } return retval;