Mercurial > hg > octave-nkf
diff src/variables.cc @ 11586:12df7854fa7c
strip trailing whitespace from source files
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 20 Jan 2011 17:24:59 -0500 |
parents | 1e4dfc7a9487 |
children | 4ced6b90fffb |
line wrap: on
line diff
--- a/src/variables.cc +++ b/src/variables.cc @@ -164,7 +164,7 @@ if (parse_status == 0) { retval = is_valid_function (fname, warn_for, 0); - + if (! retval) { error ("%s: `%s' is not valid as a function", @@ -971,7 +971,7 @@ if (param.command == 's' && param.modifier == 'c') { int a, b; - + if (param.modifier == 'c') { a = param.first_parameter_length - param.balance; @@ -1152,7 +1152,7 @@ case 't': os << varval.type_name (); break; - + default: error ("whos_line_format: command `%c' unknown", param.command); @@ -1539,11 +1539,11 @@ { if (argv[i] == "-file") { - // FIXME. This is an inefficient manner to implement this as the + // FIXME. This is an inefficient manner to implement this as the // variables are loaded in to a temporary context and then treated. // It would be better to refecat symbol_info_list to not store the // symbol records and then use it in load-save.cc (do_load) to - // implement this option there so that the variables are never + // implement this option there so that the variables are never // stored at all. if (i == argc - 1) error ("whos: -file argument must be followed by a file name"); @@ -1569,7 +1569,7 @@ if (! error_state) { - std::string newmsg = std::string ("Variables in the file ") + + std::string newmsg = std::string ("Variables in the file ") + nm + ":\n\n"; retval = do_who (i, argv, return_list, verbose, newmsg); @@ -1602,7 +1602,7 @@ pats.resize (++npats); pats[0] = "*"; } - + symbol_info_list symbol_stats; std::list<std::string> symbol_names; @@ -1885,7 +1885,7 @@ feval (fname, args, 0); } -void +void mlock (void) { octave_function *fcn = octave_call_stack::current (); @@ -1896,7 +1896,7 @@ error ("mlock: invalid use outside a function"); } -void +void munlock (const std::string& nm) { octave_value val = symbol_table::find_function (nm); @@ -2024,7 +2024,7 @@ // Deleting names from the symbol tables. static inline bool -name_matches_any_pattern (const std::string& nm, const string_vector& argv, +name_matches_any_pattern (const std::string& nm, const string_vector& argv, int argc, int idx, bool have_regexp = false) { bool retval = false; @@ -2325,7 +2325,7 @@ if (argc == 1) { do_clear_globals (argv, argc, 1); - do_clear_variables (argv, argc, 1); + do_clear_variables (argv, argc, 1); } else {