summaryrefslogtreecommitdiff
path: root/src/bin/eolian/eo_generator.c
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@samsung.com>2014-06-30 21:53:08 +0100
committerDaniel Kolesa <d.kolesa@samsung.com>2014-06-30 21:53:08 +0100
commitdd22cf814808e480cac90e4704f1ab953eac36ba (patch)
tree84041d75cd5aff21b3925434cbd4517fed723b3d /src/bin/eolian/eo_generator.c
parentd2fb3c5cb065b63b83cc3e5dddd63fccf4dbd6ec (diff)
eolian/generator: shadow fix
Diffstat (limited to '')
-rw-r--r--src/bin/eolian/eo_generator.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/bin/eolian/eo_generator.c b/src/bin/eolian/eo_generator.c
index 360db16a82..2df68df705 100644
--- a/src/bin/eolian/eo_generator.c
+++ b/src/bin/eolian/eo_generator.c
@@ -626,7 +626,7 @@ eo_source_end_generate(const Eolian_Class class, Eina_Strbuf *buf)
626 Eolian_Function_Type ftype; 626 Eolian_Function_Type ftype;
627 Eolian_Function fnid = NULL; 627 Eolian_Function fnid = NULL;
628 const char *funcname = NULL; 628 const char *funcname = NULL;
629 const char *ret; 629 const char *rets;
630 char *tp = implname; 630 char *tp = implname;
631 631
632 if (eolian_implement_information_get(impl_desc, &impl_class, &fnid, &ftype)) 632 if (eolian_implement_information_get(impl_desc, &impl_class, &fnid, &ftype))
@@ -645,31 +645,31 @@ eo_source_end_generate(const Eolian_Class class, Eina_Strbuf *buf)
645 goto end; 645 goto end;
646 } 646 }
647 647
648 ret = eolian_function_full_c_name_get(fnid, impl_env.lower_eo_prefix); 648 rets = eolian_function_full_c_name_get(fnid, impl_env.lower_eo_prefix);
649 switch (ftype) 649 switch (ftype)
650 { 650 {
651 case EOLIAN_PROP_SET: case EOLIAN_PROP_GET: case EOLIAN_PROPERTY: 651 case EOLIAN_PROP_SET: case EOLIAN_PROP_GET: case EOLIAN_PROPERTY:
652 if (ftype != EOLIAN_PROP_GET) 652 if (ftype != EOLIAN_PROP_GET)
653 { 653 {
654 eina_strbuf_append_printf(str_op, "\n EO_OP_FUNC_OVERRIDE(%s_set, _%s_%s_set),", 654 eina_strbuf_append_printf(str_op, "\n EO_OP_FUNC_OVERRIDE(%s_set, _%s_%s_set),",
655 ret, implname, funcname); 655 rets, implname, funcname);
656 eo_bind_func_generate(class, fnid, EOLIAN_PROP_SET, str_bodyf, &impl_env); 656 eo_bind_func_generate(class, fnid, EOLIAN_PROP_SET, str_bodyf, &impl_env);
657 } 657 }
658 658
659 if (ftype != EOLIAN_PROP_SET) 659 if (ftype != EOLIAN_PROP_SET)
660 { 660 {
661 eina_strbuf_append_printf(str_op, "\n EO_OP_FUNC_OVERRIDE(%s_get, _%s_%s_get),", 661 eina_strbuf_append_printf(str_op, "\n EO_OP_FUNC_OVERRIDE(%s_get, _%s_%s_get),",
662 ret, implname, funcname); 662 rets, implname, funcname);
663 eo_bind_func_generate(class, fnid, EOLIAN_PROP_GET, str_bodyf, &impl_env); 663 eo_bind_func_generate(class, fnid, EOLIAN_PROP_GET, str_bodyf, &impl_env);
664 } 664 }
665 break; 665 break;
666 default: 666 default:
667 eina_strbuf_append_printf(str_op, "\n EO_OP_FUNC_OVERRIDE(%s, _%s_%s),", 667 eina_strbuf_append_printf(str_op, "\n EO_OP_FUNC_OVERRIDE(%s, _%s_%s),",
668 ret, implname, funcname); 668 rets, implname, funcname);
669 eo_bind_func_generate(class, fnid, ftype, str_bodyf, &impl_env); 669 eo_bind_func_generate(class, fnid, ftype, str_bodyf, &impl_env);
670 break; 670 break;
671 } 671 }
672 eina_stringshare_del(ret); 672 eina_stringshare_del(rets);
673 } 673 }
674 674
675 //Constructors 675 //Constructors