changeset 15477:7760d5eff9b2

elimnate call to bind_internal_variable when handling -H option * octave.cc (octave_process_command_line): Call Fsaving_history directly here for -H option. (octave_initialize_interpreter): Don't call bind_internal_variable to set saving_history variable here.
author John W. Eaton <jwe@octave.org>
date Wed, 03 Oct 2012 02:38:53 -0400
parents da6c37ed0b42
children 8b5fc510c6d6
files libinterp/octave.cc
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/octave.cc
+++ b/libinterp/octave.cc
@@ -725,6 +725,7 @@
           break;
 
         case 'H':
+          Fsaving_history (octave_value (false));
           read_history_file = false;
           break;
 
@@ -931,9 +932,6 @@
 
   install_builtins ();
 
-  if (! read_history_file)
-    bind_internal_variable ("saving_history", false);
-
   for (std::list<std::string>::const_iterator it = command_line_path.begin ();
        it != command_line_path.end (); it++)
     load_path::set_command_line_path (*it);