jackdanielz pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=503e309e7eada4c6b75dfa877fd79abb97d5c380

commit 503e309e7eada4c6b75dfa877fd79abb97d5c380
Author: Daniel Zaoui <daniel.za...@samsung.com>
Date:   Thu Oct 2 13:40:12 2014 +0300

    Eolian/Generator: Update to use Eolian API.
    
    We now use the Eolian library to retrieve the name of the C function used
    to get the Eo_Class pointer (e.g evas_object_class_get).
---
 src/bin/eolian/eo_generator.c | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/src/bin/eolian/eo_generator.c b/src/bin/eolian/eo_generator.c
index 5255c9f..bc16c75 100644
--- a/src/bin/eolian/eo_generator.c
+++ b/src/bin/eolian/eo_generator.c
@@ -56,14 +56,14 @@ static const Eo_Class_Description _@#class_class_desc = {\n\
      @#dtor_name\n\
 };\n\
 \n\
-EO_DEFINE_CLASS(@#class_@#classtype_get, &_@#class_class_desc, 
@#list_inheritNULL);\
+EO_DEFINE_CLASS(@#klasstype_get, &_@#class_class_desc, @#list_inheritNULL);\
 ";
 
 static const char
 tmpl_eo_obj_header[] = "\
-#define @#CLASS_@#CLASSTYPE @#class_@#classtype_get()\n\
+#define @#CLASS_@#CLASSTYPE @#klasstype_get()\n\
 \n\
-const Eo_Class *@#class_@#classtype_get(void) EINA_CONST;\n\
+const Eo_Class *@#klasstype_get(void) EINA_CONST;\n\
 \n\
 ";
 
@@ -257,6 +257,7 @@ eo_header_generate(const Eolian_Class *class, Eina_Strbuf 
*buf)
 
    eina_strbuf_replace_all(str_hdr, "@#EOPREFIX", class_env.upper_eo_prefix);
    eina_strbuf_replace_all(str_hdr, "@#eoprefix", class_env.lower_eo_prefix);
+   eina_strbuf_replace_all(str_hdr, "@#klasstype_get", 
eolian_class_c_get_function_name_get(class));
 
    Eina_Strbuf *str_ev = eina_strbuf_new();
    Eina_Strbuf *str_extrn_ev = eina_strbuf_new();
@@ -739,6 +740,7 @@ eo_source_end_generate(const Eolian_Class *class, 
Eina_Strbuf *buf)
    eina_strbuf_replace_all(str_end, "@#type_class", str_classtype);
    eina_strbuf_replace_all(str_end, "@#EOPREFIX", class_env.upper_eo_prefix);
    eina_strbuf_replace_all(str_end, "@#eoprefix", class_env.lower_eo_prefix);
+   eina_strbuf_replace_all(str_end, "@#klasstype_get", 
eolian_class_c_get_function_name_get(class));
 
    eina_strbuf_reset(tmpbuf);
    eina_strbuf_replace_all(str_end, "@#ctor_func", 
eina_strbuf_string_get(tmpbuf));

-- 


Reply via email to