Mercurial > octave-nkf
changeset 1808:72b1c55692a2
[project @ 1996-01-29 07:08:33 by jwe]
author | jwe |
---|---|
date | Mon, 29 Jan 1996 07:10:45 +0000 |
parents | b16eeb7d68d6 |
children | 4100e0cb00a1 |
files | src/help.cc src/variables.cc |
diffstat | 2 files changed, 12 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/src/help.cc Mon Jan 29 07:05:12 1996 +0000 +++ b/src/help.cc Mon Jan 29 07:10:45 1996 +0000 @@ -355,9 +355,11 @@ { int count = 0; string_vector symbols = names (list, count); - output_buf << "\n*** " << desc << ":\n\n"; - if (symbols.length () > 0) - list_in_columns (output_buf, symbols); + if (! symbols.empty ()) + { + output_buf << "\n*** " << desc << ":\n\n"; + symbols.list_in_columns (output_buf); + } } static string @@ -437,9 +439,11 @@ display_symtab_names (ostrstream& output_buf, const string_vector& names, int /* count */, const string& desc) { - output_buf << "\n*** " << desc << ":\n\n"; - if (names.length () > 0) - list_in_columns (output_buf, names); + if (! names.empty ()) + { + output_buf << "\n*** " << desc << ":\n\n"; + names.list_in_columns (output_buf); + } } static void @@ -497,7 +501,7 @@ << make_absolute (dirs[i], the_current_working_directory) << ":\n\n"; - list_in_columns (output_buf, names); + names.list_in_columns (output_buf); } }
--- a/src/variables.cc Mon Jan 29 07:05:12 1996 +0000 +++ b/src/variables.cc Mon Jan 29 07:10:45 1996 +0000 @@ -1161,7 +1161,7 @@ if (symbols.length () > 0 && count > 0) { output_buf << "\n" << header << "\n\n"; - list_in_columns (output_buf, symbols); + symbols.list_in_columns (output_buf); status = 1; } }