aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/edje
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2017-10-31 16:27:38 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2017-11-01 11:22:33 +0900
commitdaa15475865d0e77ef3aa0fb06b36226b7e7f11e (patch)
tree8c2988c1d9674b9194d01fe4ddf3fad309787e0f /src/bin/edje
parentevas: Remove specific pointer_inside API (diff)
downloadefl-daa15475865d0e77ef3aa0fb06b36226b7e7f11e.tar.gz
edje_cc: Fix shadow warning (global scope)
Diffstat (limited to 'src/bin/edje')
-rw-r--r--src/bin/edje/edje_cc_script.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/bin/edje/edje_cc_script.c b/src/bin/edje/edje_cc_script.c
index 60618f8af3..4e81fb3e53 100644
--- a/src/bin/edje/edje_cc_script.c
+++ b/src/bin/edje/edje_cc_script.c
@@ -71,12 +71,12 @@ code_parse_internal(Code *code)
char *begin = code->shared;
char *end = begin + strlen(begin);
char *body;
- Eina_Array *stack;
+ Eina_Array *name_stack;
Eina_Bool is_args = EINA_FALSE;
Eina_Bool is_public = EINA_FALSE;
int depth = 0;
- stack = eina_array_new(4);
+ name_stack = eina_array_new(4);
while ((token = next_token(&begin, end)))
{
@@ -103,14 +103,14 @@ code_parse_internal(Code *code)
case TOKEN_TYPE_COLON:
if (!sym)
sym = mem_alloc(SZ(Code_Symbol));
- sym->tag = eina_array_pop(stack);
+ sym->tag = eina_array_pop(name_stack);
break;
case TOKEN_TYPE_SEMICOLON:
- if (eina_array_count(stack))
+ if (eina_array_count(name_stack))
{
if (!sym)
sym = mem_alloc(SZ(Code_Symbol));
- sym->name = eina_array_pop(stack);
+ sym->name = eina_array_pop(name_stack);
sym->is_public = is_public;
code->vars = eina_list_append(code->vars, sym);
sym = NULL;
@@ -120,7 +120,7 @@ code_parse_internal(Code *code)
case TOKEN_TYPE_COMMA:
if (!sym)
sym = mem_alloc(SZ(Code_Symbol));
- sym->name = eina_array_pop(stack);
+ sym->name = eina_array_pop(name_stack);
if (is_args)
func->args = eina_list_append(func->args, sym);
else
@@ -141,15 +141,15 @@ code_parse_internal(Code *code)
func = sym;
sym = NULL;
}
- func->name = eina_array_pop(stack);
+ func->name = eina_array_pop(name_stack);
}
else
{
- if (eina_array_count(stack))
+ if (eina_array_count(name_stack))
{
if (!sym)
sym = mem_alloc(SZ(Code_Symbol));
- sym->name = eina_array_pop(stack);
+ sym->name = eina_array_pop(name_stack);
func->args = eina_list_append(func->args, sym);
}
sym = func;
@@ -189,7 +189,7 @@ code_parse_internal(Code *code)
is_public = EINA_TRUE;
break;
case TOKEN_TYPE_IDENTIFIER:
- eina_array_push(stack, token->str);
+ eina_array_push(name_stack, token->str);
token->str = NULL;
break;
default:
@@ -201,7 +201,7 @@ code_parse_internal(Code *code)
free(token);
}
- eina_array_free(stack);
+ eina_array_free(name_stack);
}
static Token *