Branch: Tag:

2016-07-04

2016-07-04 18:08:17 by Martin Nilsson <nilsson@fastmail.com>

It's tedious to write trim_all_whites. Make trim the canonical name.

101:      #define Stat Files.Stat   #define capitalize(X) (upper_case((X)[..0])+(X)[1..]) - #define trim_all_whites(X) (Builtin.string_trim_all_whites (X)) + #define trim(X) (Builtin.string_trim (X))      private function write = Files()->_stdout->write;   private function werror = Files()->_stderr->write;
1183:    string msg, mixed ... args)   {    if (sizeof (args)) msg = sprintf (msg, @args); -  msg = trim_all_whites (msg); +  msg = trim (msg);    if (handler?->compile_warning)    handler->compile_warning (file, 0, msg);    else if (master()->compile_warning)
2857:    if( arguments )    args = map(    map(C.group(C.split(arguments))/({","}),C.simple_reconstitute), -  Builtin.string_trim_all_whites); +  Builtin.string_trim);    else    args = ({});   
4391:       })    return sprintf ("<Failed to index backtrace object %O: %s>\n", -  err_obj, trim_all_whites (call_describe_error (err))); +  err_obj, trim (call_describe_error (err)));    }       else if (arrayp(trace)) {
4611:       })    return sprintf ("<Failed to index error object %O: %s>\n", -  err_obj, trim_all_whites (call_describe_error (err))); +  err_obj, trim (call_describe_error (err)));    }       else if (arrayp(err) && sizeof([array]err)==2 &&