diff liboctave/cmd-hist.cc @ 4802:b3f20980be32

[project @ 2004-02-25 05:14:19 by jwe]
author jwe
date Wed, 25 Feb 2004 05:14:19 +0000
parents b79da8779a0e
children 4c8a2e4e0717
line wrap: on
line diff
--- a/liboctave/cmd-hist.cc
+++ b/liboctave/cmd-hist.cc
@@ -87,7 +87,7 @@
 
   void do_set_mark (int);
 
-  void do_goto_mark (void);
+  int do_goto_mark (void);
 
   void do_read (const std::string&, bool);
 
@@ -187,7 +187,7 @@
   mark = n;
 }
 
-void
+int
 gnu_history::do_goto_mark (void)
 {
   if (mark)
@@ -206,6 +206,8 @@
 
   // XXX FIXME XXX -- for operate_and_get_next.
   command_editor::restore_startup_hook ();
+
+  return 0;
 }
 
 void
@@ -528,11 +530,11 @@
     instance->do_set_mark (n);
 }
 
-void
+int
 command_history::goto_mark (void)
 {
-  if (instance_ok ())
-    instance->do_goto_mark ();
+  return (instance_ok ())
+    ? instance->do_goto_mark () : 0;
 }
 
 void
@@ -709,9 +711,10 @@
 {
 }
 
-void
+int
 command_history::do_goto_mark (void)
 {
+  return 0;
 }
 
 void