# HG changeset patch # User Rik # Date 1377725905 25200 # Node ID 91691d74845d4ce9f75f6b77dc7242c6d98fbda1 # Parent 4ddc277e5bdbc026ccf68531a63d89b80427658e oct-hist.cc: Wrap code lines > 80 characters. * libinterp/corefcn/oct-hist.cc: Break up simultaneous definition and assigment of variable so that each half is less than 80 characters. diff -r 4ddc277e5bdb -r 91691d74845d libinterp/corefcn/oct-hist.cc --- a/libinterp/corefcn/oct-hist.cc Wed Aug 28 14:26:37 2013 -0700 +++ b/libinterp/corefcn/oct-hist.cc Wed Aug 28 14:38:25 2013 -0700 @@ -755,12 +755,13 @@ @seealso{history_file, history_size, history_timestamp_format_string, history_save}\n\ @end deftypefn") { + octave_value retval; + std::string old_history_control = command_history::histcontrol (); std::string tmp = old_history_control; - octave_value retval = set_internal_variable (tmp, args, nargout, - "history_control"); + retval = set_internal_variable (tmp, args, nargout, "history_control"); if (tmp != old_history_control) command_history::process_histcontrol (tmp); @@ -778,13 +779,15 @@ @seealso{history_file, history_timestamp_format_string, history_save}\n\ @end deftypefn") { + octave_value retval; + int old_history_size = command_history::size (); int tmp = old_history_size; - octave_value retval = set_internal_variable (tmp, args, nargout, - "history_size", -1, - std::numeric_limits::max ()); + retval = set_internal_variable (tmp, args, nargout, + "history_size", -1, + std::numeric_limits::max ()); if (tmp != old_history_size) command_history::set_size (tmp); @@ -803,12 +806,13 @@ @seealso{history_size, history_save, history_timestamp_format_string}\n\ @end deftypefn") { + octave_value retval; + std::string old_history_file = command_history::file (); std::string tmp = old_history_file; - octave_value retval = set_internal_variable (tmp, args, nargout, - "history_file"); + retval = set_internal_variable (tmp, args, nargout, "history_file"); if (tmp != old_history_file) command_history::set_file (tmp); @@ -853,12 +857,13 @@ @seealso{history_control, history_file, history_size, history_timestamp_format_string}\n\ @end deftypefn") { + octave_value retval; + bool old_history_save = ! command_history::ignoring_entries (); bool tmp = old_history_save; - octave_value retval = set_internal_variable (tmp, args, nargout, - "history_save"); + retval = set_internal_variable (tmp, args, nargout, "history_save"); if (tmp != old_history_save) command_history::ignore_entries (! tmp);