Mercurial > octave
comparison 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 |
comparison
equal
deleted
inserted
replaced
29855:1e0530d86229 | 29856:56b3e2af0298 |
---|---|
131 : m_interpreter (interp), m_parser (), m_statement_context (SC_OTHER), | 131 : m_interpreter (interp), m_parser (), m_statement_context (SC_OTHER), |
132 m_lvalue_list (nullptr), m_autoload_map (), m_bp_table (*this), | 132 m_lvalue_list (nullptr), m_autoload_map (), m_bp_table (*this), |
133 m_call_stack (*this), m_profiler (), m_debug_frame (0), | 133 m_call_stack (*this), m_profiler (), m_debug_frame (0), |
134 m_debug_mode (false), m_quiet_breakpoint_flag (false), | 134 m_debug_mode (false), m_quiet_breakpoint_flag (false), |
135 m_debugger_stack (), m_exit_status (0), m_max_recursion_depth (256), | 135 m_debugger_stack (), m_exit_status (0), m_max_recursion_depth (256), |
136 m_whos_line_format (" %a:4; %ln:6; %cs:16:6:1; %rb:12; %lc:-1;\n"), | 136 m_whos_line_format (" %la:5; %ln:6; %cs:16:6:1; %rb:12; %lc:-1;\n"), |
137 m_silent_functions (false), m_string_fill_char (' '), m_PS4 ("+ "), | 137 m_silent_functions (false), m_string_fill_char (' '), m_PS4 ("+ "), |
138 m_dbstep_flag (0), m_break_on_next_stmt (false), m_echo (ECHO_OFF), | 138 m_dbstep_flag (0), m_break_on_next_stmt (false), m_echo (ECHO_OFF), |
139 m_echo_state (false), m_echo_file_name (), m_echo_file_pos (1), | 139 m_echo_state (false), m_echo_file_name (), m_echo_file_pos (1), |
140 m_echo_files (), m_in_top_level_repl (false), | 140 m_echo_files (), m_in_top_level_repl (false), |
141 m_server_mode (false), m_in_loop_command (false), | 141 m_server_mode (false), m_in_loop_command (false), |