Mercurial > octave
diff libinterp/parse-tree/pt-eval.h @ 29856:56b3e2af0298
Add 's'=sparse attribute for whos function (bug #60687)
* syminfo.cc (symbol_info::display_line): Increase width of attribute string by
one. Check m_is_sparse variable and display 's' if variable is sparse.
* syminfo.cc (symbol_info_list::parse_whos_line_format): Increase column width
for attribute field by one from 5 to 6.
* syminfo.h (symbol_info): Initialize member variable "m_is_sparse" by calling
octave_value method issparse(). Add method "is_sparse" which returns member
variable "m_is_sparse". Define boolean member variable "m_is_sparse".
* pt-eval.cc (Fwhos_line_format): Update documentation to discuss 's' = sparse
attribute and for new value of whos_line_format.
* pt-eval.h (tree_evaluator): Change initialization of member variable
"m_whos_line_format" to make attribute field left-justified and of width 6.
* NEWS: Add description of new attribute.
author | Rik <rik@octave.org> |
---|---|
date | Tue, 06 Jul 2021 11:12:20 -0700 |
parents | 449599fdbad8 |
children | 939bef0b66e0 |
line wrap: on
line diff
--- a/libinterp/parse-tree/pt-eval.h Tue Jul 06 09:41:03 2021 -0700 +++ b/libinterp/parse-tree/pt-eval.h Tue Jul 06 11:12:20 2021 -0700 @@ -133,7 +133,7 @@ m_call_stack (*this), m_profiler (), m_debug_frame (0), m_debug_mode (false), m_quiet_breakpoint_flag (false), m_debugger_stack (), m_exit_status (0), m_max_recursion_depth (256), - m_whos_line_format (" %a:4; %ln:6; %cs:16:6:1; %rb:12; %lc:-1;\n"), + m_whos_line_format (" %la:5; %ln:6; %cs:16:6:1; %rb:12; %lc:-1;\n"), m_silent_functions (false), m_string_fill_char (' '), m_PS4 ("+ "), m_dbstep_flag (0), m_break_on_next_stmt (false), m_echo (ECHO_OFF), m_echo_state (false), m_echo_file_name (), m_echo_file_pos (1),