# HG changeset patch # User Ryan Rusaw # Date 1264761313 18000 # Node ID 979fb2606c4fbe94983e93857afa83f7545892a8 # Parent ce94aaa71a4f1ec8c962dc598319d7fe764efaab new tree_evaluator::do_keyoard function diff -r ce94aaa71a4f -r 979fb2606c4f src/ChangeLog --- a/src/ChangeLog Thu Jan 28 20:59:31 2010 -0500 +++ b/src/ChangeLog Fri Jan 29 05:35:13 2010 -0500 @@ -1,3 +1,8 @@ +2010-01-29 Ryan Rusaw + + * pt-eval.h, pt-eval.cc (tree_evaluator::do_keyboard): + New virtual function. + 2010-01-28 Jaroslav Hajek * toplev.cc (run_command_and_return_output): Fix testing of failed diff -r ce94aaa71a4f -r 979fb2606c4f src/pt-eval.cc --- a/src/pt-eval.cc Thu Jan 28 20:59:31 2010 -0500 +++ b/src/pt-eval.cc Fri Jan 29 05:35:13 2010 -0500 @@ -1155,6 +1155,17 @@ if (break_on_this_statement) do_keyboard (); + +} + +// ARGS is currently unused, but since the do_keyboard function in +// input.cc accepts an argument list, we preserve it here so that the +// interface won't have to change if we decide to use it in the future. + +octave_value +tree_evaluator::do_keyboard (const octave_value_list& args) const +{ + return ::do_keyboard (args); } DEFUN (silent_functions, args, nargout, diff -r ce94aaa71a4f -r 979fb2606c4f src/pt-eval.h --- a/src/pt-eval.h Thu Jan 28 20:59:31 2010 -0500 +++ b/src/pt-eval.h Fri Jan 29 05:35:13 2010 -0500 @@ -163,6 +163,9 @@ void do_breakpoint (bool is_breakpoint, bool is_end_of_fcn_or_script = false) const; + virtual octave_value + do_keyboard (const octave_value_list& args = octave_value_list ()) const; + // No copying! tree_evaluator (const tree_evaluator&);