Mercurial > octave
diff libinterp/corefcn/pr-output.cc @ 21748:176536b15d68
use namespace for command_editor and command_history classes
* cmd-edit.h, cmd-edit.cc: Put command_editor class in octave
namespace. Change all uses.
* cmd-hist.h, cmd-hist.cc: Put command_history class in octave
namespace. Change all uses.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 19 May 2016 18:55:23 -0400 |
parents | 61f3575250e4 |
children | b571fc85953f |
line wrap: on
line diff
--- a/libinterp/corefcn/pr-output.cc Thu May 19 15:47:24 2016 -0700 +++ b/libinterp/corefcn/pr-output.cc Thu May 19 18:55:23 2016 -0400 @@ -1770,7 +1770,7 @@ set_format (m, fw, scale); int column_width = fw + 2; octave_idx_type total_width = nc * column_width; - octave_idx_type max_width = command_editor::terminal_cols (); + octave_idx_type max_width = octave::command_editor::terminal_cols (); if (pr_as_read_syntax) max_width -= 4; @@ -1906,7 +1906,7 @@ set_format (Matrix (m.diag ()), fw, scale); int column_width = fw + 2; octave_idx_type total_width = nc * column_width; - octave_idx_type max_width = command_editor::terminal_cols (); + octave_idx_type max_width = octave::command_editor::terminal_cols (); if (pr_as_read_syntax) max_width -= 4; @@ -2188,7 +2188,7 @@ column_width += (rat_format || bank_format || hex_format || bit_format) ? 2 : 7; octave_idx_type total_width = nc * column_width; - octave_idx_type max_width = command_editor::terminal_cols (); + octave_idx_type max_width = octave::command_editor::terminal_cols (); if (pr_as_read_syntax) max_width -= 4; @@ -2326,7 +2326,7 @@ column_width += (rat_format || bank_format || hex_format || bit_format) ? 2 : 7; octave_idx_type total_width = nc * column_width; - octave_idx_type max_width = command_editor::terminal_cols (); + octave_idx_type max_width = octave::command_editor::terminal_cols (); if (pr_as_read_syntax) max_width -= 4; @@ -2471,7 +2471,7 @@ int fw = 2; int column_width = fw + 2; octave_idx_type total_width = nc * column_width; - octave_idx_type max_width = command_editor::terminal_cols (); + octave_idx_type max_width = octave::command_editor::terminal_cols (); if (pr_as_read_syntax) max_width -= 4; @@ -2714,7 +2714,7 @@ int column_width = fw + 2; octave_idx_type total_width = num_elem * column_width; - octave_idx_type max_width = command_editor::terminal_cols (); + octave_idx_type max_width = octave::command_editor::terminal_cols (); if (free_format) { @@ -3276,7 +3276,7 @@ int column_width = fw + (rat_format ? 0 : (bank_format ? 5 : 2)); octave_idx_type total_width = nc * column_width; - int max_width = command_editor::terminal_cols () - extra_indent; + int max_width = octave::command_editor::terminal_cols () - extra_indent; octave_idx_type inc = nc; if (total_width > max_width && Vsplit_long_rows) {