comparison src/shape_path.c @ 112:abb5511c23f7

Accept exponent of float point
author Thinker K.F. Li <thinker@branda.to>
date Sun, 14 Sep 2008 01:03:23 +0800
parents d6f9af55b0d0
children 609ed47a58f2
comparison
equal deleted inserted replaced
111:8feb89b19619 112:abb5511c23f7
28 #define ASSERT(x) 28 #define ASSERT(x)
29 #define SKIP_SPACE(x) while(*(x) && (isspace(*(x)) || *(x) == ',')) { (x)++; } 29 #define SKIP_SPACE(x) while(*(x) && (isspace(*(x)) || *(x) == ',')) { (x)++; }
30 #define SKIP_NUM(x) \ 30 #define SKIP_NUM(x) \
31 while(*(x) && \ 31 while(*(x) && \
32 (isdigit(*(x)) || \ 32 (isdigit(*(x)) || \
33 *(x) == 'e' || \
34 *(x) == 'E' || \
33 *(x) == '-' || \ 35 *(x) == '-' || \
34 *(x) == '+' || \ 36 *(x) == '+' || \
35 *(x) == '.')) { \ 37 *(x) == '.')) { \
36 (x)++; \ 38 (x)++; \
37 } 39 }