changeset 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 8feb89b19619
children cf8ccf06e397
files src/shape_path.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/shape_path.c	Fri Sep 12 23:43:11 2008 +0800
+++ b/src/shape_path.c	Sun Sep 14 01:03:23 2008 +0800
@@ -30,6 +30,8 @@
 #define SKIP_NUM(x)					\
     while(*(x) &&					\
 	  (isdigit(*(x)) ||				\
+	   *(x) == 'e' ||				\
+	   *(x) == 'E' ||				\
 	   *(x) == '-' ||				\
 	   *(x) == '+' ||				\
 	   *(x) == '.'))  {					\