summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJee-Yong Um <jc9.um@samsung.com>2016-06-02 20:55:10 +0900
committerJaehyun Cho <jae_hyun.cho@samsung.com>2016-06-02 20:55:10 +0900
commit69ea4145c95a28c79c43de89079fdbbca628054b (patch)
tree3871c2d23a31eca02aefa393ee69aa631a69be3f
parent92cfd074aafbc2c6aa08d3695706c32f3fbd5cd6 (diff)
downloadefl-69ea4145c95a28c79c43de89079fdbbca628054b.tar.gz
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
-rw-r--r--src/bin/edje/edje_cc_handlers.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/bin/edje/edje_cc_handlers.c b/src/bin/edje/edje_cc_handlers.c
index be98111cfe..0fa5a4f408 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;