expr: Improve mathfunc handling
commite930051115fef44a4f1a3214969169fb5b6d924d
authorSteve Bennett <steveb@workware.net.au>
Mon, 18 Apr 2016 11:39:08 +0000 (18 21:39 +1000)
committerSteve Bennett <steveb@workware.net.au>
Wed, 17 Aug 2016 05:58:22 +0000 (17 15:58 +1000)
tree0e0471452f45b3a4c2870582a211e2a347c718b8
parenta4f2aef246668e2d33f379093157d872d2db07f2
expr: Improve mathfunc handling

Previously math functions with multiple arguments were handling poorly.

For example:      pow(1.0 + 3.0 - 2, .8 * 5)
was evaluated as: pow(1.0 + 3.0, 2 - .8 * 5)

Now commas correctly separate function parameters.

Also, the error messages are more consistent and informative in the case
of an invalid expression.

Update and re-enable tests in tests/expr-old.test accordingly

Signed-off-by: Steve Bennett <steveb@workware.net.au>
jim.c
tests/expr-old.test