# HG changeset patch # User jwe # Date 1098121366 0 # Node ID a9f7f67e2b6e693453d1a4bace4e081376ee23e6 # Parent 36f954d8d53af07a1f289302c5b0529d6dcb7d52 [project @ 2004-10-18 17:42:46 by jwe] diff -r 36f954d8d53a -r a9f7f67e2b6e src/ChangeLog --- a/src/ChangeLog Mon Oct 18 17:34:51 2004 +0000 +++ b/src/ChangeLog Mon Oct 18 17:42:46 2004 +0000 @@ -1,3 +1,8 @@ +2004-10-18 Oyvind Kristiansen + + * symtab.cc (symbol_table::parse_whos_line_format): Handle + size-of-parameter and center-specific format specifiers. + 2004-10-18 John W. Eaton * pt-plot.cc (handle_plot_data): If plotting data from file, diff -r 36f954d8d53a -r a9f7f67e2b6e src/symtab.cc --- a/src/symtab.cc Mon Oct 18 17:34:51 2004 +0000 +++ b/src/symtab.cc Mon Oct 18 17:42:46 2004 +0000 @@ -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++) {