summaryrefslogtreecommitdiff
path: root/src/bin/eolian/eo_generator.c
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@samsung.com>2014-06-24 17:15:17 +0100
committerDaniel Kolesa <d.kolesa@samsung.com>2014-06-30 17:20:06 +0100
commitc0576cee73382fc833d7eecf13b365321cbf365d (patch)
treeb7f7503d50d5958fcb0aec3002eaace9dcd187b1 /src/bin/eolian/eo_generator.c
parent1674d967d2137903b6430ff84b03bb2fd052dcf1 (diff)
eolian: new API: eolian_function_full_c_name_get - reduces duplication of code
Diffstat (limited to '')
-rw-r--r--src/bin/eolian/eo_generator.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bin/eolian/eo_generator.c b/src/bin/eolian/eo_generator.c
index 1eb4fbd50f..afea024025 100644
--- a/src/bin/eolian/eo_generator.c
+++ b/src/bin/eolian/eo_generator.c
@@ -597,8 +597,8 @@ eo_source_end_generate(const Eolian_Class class, Eina_Strbuf *buf)
597 Eolian_Function_Type ftype; 597 Eolian_Function_Type ftype;
598 Eolian_Function fnid = NULL; 598 Eolian_Function fnid = NULL;
599 const char *funcname = NULL; 599 const char *funcname = NULL;
600 const char *ret;
600 char *tp = implname; 601 char *tp = implname;
601 char *ret;
602 602
603 if (eolian_implement_information_get(impl_desc, &impl_class, &fnid, &ftype)) 603 if (eolian_implement_information_get(impl_desc, &impl_class, &fnid, &ftype))
604 { 604 {
@@ -616,7 +616,7 @@ eo_source_end_generate(const Eolian_Class class, Eina_Strbuf *buf)
616 goto end; 616 goto end;
617 } 617 }
618 618
619 ret = _func_name_dedup(impl_env.lower_eo_prefix, funcname); 619 ret = eolian_function_full_c_name_get(fnid, impl_env.lower_eo_prefix);
620 switch (ftype) 620 switch (ftype)
621 { 621 {
622 case EOLIAN_PROP_SET: case EOLIAN_PROP_GET: case EOLIAN_PROPERTY: 622 case EOLIAN_PROP_SET: case EOLIAN_PROP_GET: case EOLIAN_PROPERTY:
@@ -640,7 +640,7 @@ eo_source_end_generate(const Eolian_Class class, Eina_Strbuf *buf)
640 eo_bind_func_generate(class, fnid, ftype, str_bodyf, &impl_env); 640 eo_bind_func_generate(class, fnid, ftype, str_bodyf, &impl_env);
641 break; 641 break;
642 } 642 }
643 free(ret); 643 eina_stringshare_del(ret);
644 } 644 }
645 645
646 //Constructors 646 //Constructors