changeset 10219:979fb2606c4f

new tree_evaluator::do_keyoard function
author Ryan Rusaw <rrusaw@gmail.com>
date Fri, 29 Jan 2010 05:35:13 -0500
parents ce94aaa71a4f
children 04f2b4d68eba
files src/ChangeLog src/pt-eval.cc src/pt-eval.h
diffstat 3 files changed, 19 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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  <rrusaw@gmail.com>
+
+	* pt-eval.h, pt-eval.cc (tree_evaluator::do_keyboard):
+	New virtual function.
+
 2010-01-28  Jaroslav Hajek  <highegg@gmail.com>
 
 	* toplev.cc (run_command_and_return_output): Fix testing of failed
--- 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,
--- 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&);