add lengthy comment to document an obvious bug that someone who knows the code should fix
authordiscomfitor <discomfitor@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sat, 31 Jul 2010 05:01:34 +0000 (05:01 +0000)
committerdiscomfitor <discomfitor@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sat, 31 Jul 2010 05:01:34 +0000 (05:01 +0000)
FIX THIS!!!!!!!!!!!!!

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/edje@50704 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/bin/edje_cc_parse.c

index 7c53ffd..6ce2d46 100644 (file)
@@ -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;
 }