Ticket #5203: log_to_ln.patch

File log_to_ln.patch, 798 bytes (added by jscipione, 12 years ago)

Changes log to ln and log10 to log (which is what most people expect)

  • src/kits/shared/ExpressionParser.cpp

     
    604604    } else if (strcasecmp("floor", token.string.String()) == 0) {
    605605        _InitArguments(values, 1);
    606606        return values[0].floor();
    607     } else if (strcasecmp("log", token.string.String()) == 0) {
     607    } else if (strcasecmp("ln", token.string.String()) == 0) {
    608608        _InitArguments(values, 1);
    609609        return values[0].log();
    610     } else if (strcasecmp("log10", token.string.String()) == 0) {
     610    } else if (strcasecmp("log", token.string.String()) == 0) {
    611611        _InitArguments(values, 1);
    612612        return values[0].log10();
    613613    } else if (strcasecmp("pow", token.string.String()) == 0) {