summaryrefslogtreecommitdiff
path: root/src/bin
diff options
context:
space:
mode:
authorYossi Kantor <yossi.kantor@samsung.com>2014-02-19 15:30:04 +0200
committerDaniel Zaoui <daniel.zaoui@samsung.com>2014-03-03 14:09:56 +0200
commit521701ff70f0d2ba8956c1e9045f0c4a2f6be8e4 (patch)
tree8a63f963d67dfc2fa8b0f95b7146477fb580985a /src/bin
parent02f4c112ca73472dec65eb483304c836a59b2c25 (diff)
Eolian: naming convention for implemented functions
The format is now _<current_class>_<inherited_class>_function_name.
Diffstat (limited to 'src/bin')
-rw-r--r--src/bin/eolian/eo1_generator.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/bin/eolian/eo1_generator.c b/src/bin/eolian/eo1_generator.c
index 6edb0e0d87..853499ddfa 100644
--- a/src/bin/eolian/eo1_generator.c
+++ b/src/bin/eolian/eo1_generator.c
@@ -569,12 +569,12 @@ eo1_source_end_generate(const char *classname, Eina_Strbuf *buf)
569 Eina_Strbuf *tmpl_impl = eina_strbuf_new(); 569 Eina_Strbuf *tmpl_impl = eina_strbuf_new();
570 eina_strbuf_append(tmpl_impl, tmpl_eo_func_desc); 570 eina_strbuf_append(tmpl_impl, tmpl_eo_func_desc);
571 571
572 char tbuff[0xFF]; 572 char implname[0xFF];
573 char *tp = tbuff; 573 char *tp = implname;
574 strcpy(tbuff, classname); 574 sprintf(implname, "%s_%s", classname, impl_class);
575 eina_str_tolower(&tp); 575 eina_str_tolower(&tp);
576 576
577 eina_strbuf_replace_all(tmpl_impl, "@#class", tbuff); 577 eina_strbuf_replace_all(tmpl_impl, "@#class", implname);
578 const char *tmpl_impl_str = eina_strbuf_string_get(tmpl_impl); 578 const char *tmpl_impl_str = eina_strbuf_string_get(tmpl_impl);
579 579
580 Eolian_Function in_meth = NULL; 580 Eolian_Function in_meth = NULL;
@@ -597,7 +597,7 @@ eo1_source_end_generate(const char *classname, Eina_Strbuf *buf)
597 if (in_meth) 597 if (in_meth)
598 { 598 {
599 _template_fill(str_func, tmpl_impl_str, impl_class, funcname, EINA_FALSE); 599 _template_fill(str_func, tmpl_impl_str, impl_class, funcname, EINA_FALSE);
600 eo1_bind_func_generate(classname, in_meth, UNRESOLVED, str_bodyf); 600 eo1_bind_func_generate(implname, in_meth, UNRESOLVED, str_bodyf);
601 } 601 }
602 602
603 if (in_prop) 603 if (in_prop)
@@ -613,14 +613,14 @@ eo1_source_end_generate(const char *classname, Eina_Strbuf *buf)
613 { 613 {
614 sprintf(tmpstr, "%s_get", funcname); 614 sprintf(tmpstr, "%s_get", funcname);
615 _template_fill(str_func, tmpl_impl_str, impl_class, tmpstr, EINA_FALSE); 615 _template_fill(str_func, tmpl_impl_str, impl_class, tmpstr, EINA_FALSE);
616 eo1_bind_func_generate(classname, in_prop, GET, str_bodyf); 616 eo1_bind_func_generate(implname, in_prop, GET, str_bodyf);
617 } 617 }
618 618
619 if (prop_write) 619 if (prop_write)
620 { 620 {
621 sprintf(tmpstr, "%s_set", funcname); 621 sprintf(tmpstr, "%s_set", funcname);
622 _template_fill(str_func, tmpl_impl_str, impl_class, tmpstr, EINA_FALSE); 622 _template_fill(str_func, tmpl_impl_str, impl_class, tmpstr, EINA_FALSE);
623 eo1_bind_func_generate(classname, in_prop, SET, str_bodyf); 623 eo1_bind_func_generate(implname, in_prop, SET, str_bodyf);
624 } 624 }
625 } 625 }
626 eina_strbuf_free(tmpl_impl); 626 eina_strbuf_free(tmpl_impl);