From 0302902a2bb01f570375eb7d0e96c3e84b50db3f Mon Sep 17 00:00:00 2001 From: discomfitor Date: Sat, 31 Jul 2010 05:01:34 +0000 Subject: [PATCH] add lengthy comment to document an obvious bug that someone who knows the code should fix FIX THIS!!!!!!!!!!!!! git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@50704 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/bin/edje_cc_parse.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/bin/edje_cc_parse.c b/src/bin/edje_cc_parse.c index 7c53ffd..6ce2d46 100644 --- a/src/bin/edje_cc_parse.c +++ b/src/bin/edje_cc_parse.c @@ -318,8 +318,12 @@ next_token(char *p, char *end, char **new_p, int *delim) ((*delim) && (!isdelim(*p))) || (isdelim(*p)) ) - { + {/*the line below this is never used because it skips to + * the 'done' label which is after the return call for + * in_tok being 0. is this intentional? + */ in_tok = 0; + tok_end = p - 1; if (*p == '\n') line--; goto done; @@ -833,7 +837,6 @@ is_num(int n) { char *str; char *end; - long val; str = eina_list_nth(params, n); if (!str) @@ -844,7 +847,7 @@ is_num(int n) } if (str[0] == 0) return 0; end = str; - val = strtol(str, &end, 0); + strtol(str, &end, 0); if ((end != str) && (end[0] == 0)) return 1; return 0; } -- 2.7.4