jaehyun pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=69ea4145c95a28c79c43de89079fdbbca628054b

commit 69ea4145c95a28c79c43de89079fdbbca628054b
Author: Jee-Yong Um <jc9...@samsung.com>
Date:   Thu Jun 2 20:55:10 2016 +0900

    edje_cc: improve code readability when parsing external params
    
    Reviewers: Jaehyun_Cho
    
    Reviewed By: Jaehyun_Cho
    
    Subscribers: cedric, jpeg
    
    Differential Revision: https://phab.enlightenment.org/D4009
---
 src/bin/edje/edje_cc_handlers.c | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/src/bin/edje/edje_cc_handlers.c b/src/bin/edje/edje_cc_handlers.c
index be98111..0fa5a4f 100644
--- a/src/bin/edje/edje_cc_handlers.c
+++ b/src/bin/edje/edje_cc_handlers.c
@@ -1189,20 +1189,20 @@ static Edje_External_Param_Type
 _parse_external_param_type(char *token)
 {
    Eina_Bool num, point;
-   char *begin;
+   char *s;
 
    if (param_had_quote(0))
      return EDJE_EXTERNAL_PARAM_TYPE_STRING;
 
    num = EINA_TRUE;
    point = EINA_FALSE;
-   begin = token;
+   s = token;
 
-   while (*token)
+   while (*s)
      {
-        if ((*token < '0') || (*token > '9'))
+        if ((*s < '0') || (*s > '9'))
           {
-             if ((!point) && (*token == '.'))
+             if ((!point) && (*s == '.'))
                {
                   point = EINA_TRUE;
                }
@@ -1212,7 +1212,7 @@ _parse_external_param_type(char *token)
                   break;
                }
           }
-        token++;
+        s++;
      }
 
    if (num)
@@ -1224,7 +1224,7 @@ _parse_external_param_type(char *token)
      }
    else
      {
-        if (!strcmp(begin, "true") || !strcmp(begin, "false"))
+        if (!strcmp(token, "true") || !strcmp(token, "false"))
           return EDJE_EXTERNAL_PARAM_TYPE_BOOL;
         else
           return EDJE_EXTERNAL_PARAM_TYPE_CHOICE;

-- 


Reply via email to