Mercurial > libavcodec.hg
comparison eval.c @ 4095:fda3ec8e96e1 libavcodec
ignore whitespace in ff_eval
| author | ods15 |
|---|---|
| date | Sat, 28 Oct 2006 09:49:13 +0000 |
| parents | ca9b4b42ebf9 |
| children | 5e5c34470242 |
comparison
equal
deleted
inserted
replaced
| 4094:f812a11be0b1 | 4095:fda3ec8e96e1 |
|---|---|
| 380 double (**func1)(void *, double), const char **func1_name, | 380 double (**func1)(void *, double), const char **func1_name, |
| 381 double (**func2)(void *, double, double), char **func2_name, | 381 double (**func2)(void *, double, double), char **func2_name, |
| 382 char **error){ | 382 char **error){ |
| 383 Parser p; | 383 Parser p; |
| 384 AVEvalExpr * e; | 384 AVEvalExpr * e; |
| 385 char w[strlen(s) + 1], * wp = w; | |
| 386 | |
| 387 while (*s) | |
| 388 if (!isspace(*s++)) *wp++ = s[-1]; | |
| 389 *wp++ = 0; | |
| 385 | 390 |
| 386 p.stack_index=100; | 391 p.stack_index=100; |
| 387 p.s= s; | 392 p.s= w; |
| 388 p.const_name = const_name; | 393 p.const_name = const_name; |
| 389 p.func1 = func1; | 394 p.func1 = func1; |
| 390 p.func1_name = func1_name; | 395 p.func1_name = func1_name; |
| 391 p.func2 = func2; | 396 p.func2 = func2; |
| 392 p.func2_name = func2_name; | 397 p.func2_name = func2_name; |
