# HG changeset patch # User ods15 # Date 1162028953 0 # Node ID fda3ec8e96e1b7d602cd61d326313c634eceff08 # Parent f812a11be0b158995d765af154dfcf254eae5faa ignore whitespace in ff_eval diff -r f812a11be0b1 -r fda3ec8e96e1 eval.c --- a/eval.c Sat Oct 28 09:30:43 2006 +0000 +++ b/eval.c Sat Oct 28 09:49:13 2006 +0000 @@ -382,9 +382,14 @@ char **error){ Parser p; AVEvalExpr * e; + char w[strlen(s) + 1], * wp = w; + + while (*s) + if (!isspace(*s++)) *wp++ = s[-1]; + *wp++ = 0; p.stack_index=100; - p.s= s; + p.s= w; p.const_name = const_name; p.func1 = func1; p.func1_name = func1_name;