Mercurial > hg > octave-lojdl
changeset 5048:a9f7f67e2b6e
[project @ 2004-10-18 17:42:46 by jwe]
author | jwe |
---|---|
date | Mon, 18 Oct 2004 17:42:46 +0000 |
parents | 36f954d8d53a |
children | b65ec179786f |
files | src/ChangeLog src/symtab.cc |
diffstat | 2 files changed, 15 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2004-10-18 Oyvind Kristiansen <oyvinkri@stud.ntnu.no> + + * symtab.cc (symbol_table::parse_whos_line_format): Handle + size-of-parameter and center-specific format specifiers. + 2004-10-18 John W. Eaton <jwe@octave.org> * pt-plot.cc (handle_plot_data): If plotting data from file,
--- a/src/symtab.cc +++ b/src/symtab.cc @@ -1427,6 +1427,13 @@ param.parameter_length = param_length(pos); param.text = param_names(pos); param.line.assign (param_names (pos).length (), '='); + + param.parameter_length = (a > param.parameter_length ? + a : param.parameter_length); + if((param.command == 's') && (param.modifier == 'c') && (b > 0)) + { + param.first_parameter_length = b; + } } else { @@ -1441,8 +1448,10 @@ // Space needed for Size column is hard to determine in prior, // because it depends on dimensions to be shown. That is why it is // recalculated for each Size-command - int j, first = 0, rest = 0, total = 0; + int j, first, rest = 0, total; param.dimensions = c; + first = param.first_parameter_length; + total = param.parameter_length; for (j = 0; j < len; j++) {