diff liboctave/util/cmd-hist.h @ 15397:231d8d3b8225

provide command_hist::clear_history function * cmd-hist.h, cmd-hist.cc (command_history::clear, command_history::do_clear): New functions. * cmd-hist.cc (gnu_history::do_clear): New function. * oct-rl-hist.h, oct-rl-hist.c (octave_clear_history): New function.
author John W. Eaton <jwe@octave.org>
date Mon, 17 Sep 2012 18:34:29 -0400
parents 648dabbb4c6b
children 33ce8c381f2c
line wrap: on
line diff
--- a/liboctave/util/cmd-hist.h	Mon Sep 17 19:52:20 2012 -0400
+++ b/liboctave/util/cmd-hist.h	Mon Sep 17 18:34:29 2012 -0400
@@ -65,6 +65,8 @@
 
   static void remove (int);
 
+  static void clear (void);
+
   static int where (void);
 
   static int length (void);
@@ -158,6 +160,8 @@
 
   virtual void do_remove (int);
 
+  virtual void do_clear (void);
+
   virtual int do_where (void) const;
 
   virtual int do_length (void) const;