summaryrefslogtreecommitdiff
path: root/src/bin/eolian/eo_generator.c
diff options
context:
space:
mode:
authorDaniel Zaoui <daniel.zaoui@samsung.com>2014-10-02 13:40:12 +0300
committerDaniel Zaoui <daniel.zaoui@samsung.com>2014-10-02 13:48:52 +0300
commit503e309e7eada4c6b75dfa877fd79abb97d5c380 (patch)
tree5753701868639a1e93fcba007e55380b05f213d6 /src/bin/eolian/eo_generator.c
parentbd4b0d7a9d108d39ea0568807ada20a94b524a4b (diff)
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).
Diffstat (limited to 'src/bin/eolian/eo_generator.c')
-rw-r--r--src/bin/eolian/eo_generator.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/bin/eolian/eo_generator.c b/src/bin/eolian/eo_generator.c
index 5255c9fa69..bc16c75a91 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\
56 @#dtor_name\n\ 56 @#dtor_name\n\
57};\n\ 57};\n\
58\n\ 58\n\
59EO_DEFINE_CLASS(@#class_@#classtype_get, &_@#class_class_desc, @#list_inheritNULL);\ 59EO_DEFINE_CLASS(@#klasstype_get, &_@#class_class_desc, @#list_inheritNULL);\
60"; 60";
61 61
62static const char 62static const char
63tmpl_eo_obj_header[] = "\ 63tmpl_eo_obj_header[] = "\
64#define @#CLASS_@#CLASSTYPE @#class_@#classtype_get()\n\ 64#define @#CLASS_@#CLASSTYPE @#klasstype_get()\n\
65\n\ 65\n\
66const Eo_Class *@#class_@#classtype_get(void) EINA_CONST;\n\ 66const Eo_Class *@#klasstype_get(void) EINA_CONST;\n\
67\n\ 67\n\
68"; 68";
69 69
@@ -257,6 +257,7 @@ eo_header_generate(const Eolian_Class *class, Eina_Strbuf *buf)
257 257
258 eina_strbuf_replace_all(str_hdr, "@#EOPREFIX", class_env.upper_eo_prefix); 258 eina_strbuf_replace_all(str_hdr, "@#EOPREFIX", class_env.upper_eo_prefix);
259 eina_strbuf_replace_all(str_hdr, "@#eoprefix", class_env.lower_eo_prefix); 259 eina_strbuf_replace_all(str_hdr, "@#eoprefix", class_env.lower_eo_prefix);
260 eina_strbuf_replace_all(str_hdr, "@#klasstype_get", eolian_class_c_get_function_name_get(class));
260 261
261 Eina_Strbuf *str_ev = eina_strbuf_new(); 262 Eina_Strbuf *str_ev = eina_strbuf_new();
262 Eina_Strbuf *str_extrn_ev = eina_strbuf_new(); 263 Eina_Strbuf *str_extrn_ev = eina_strbuf_new();
@@ -739,6 +740,7 @@ eo_source_end_generate(const Eolian_Class *class, Eina_Strbuf *buf)
739 eina_strbuf_replace_all(str_end, "@#type_class", str_classtype); 740 eina_strbuf_replace_all(str_end, "@#type_class", str_classtype);
740 eina_strbuf_replace_all(str_end, "@#EOPREFIX", class_env.upper_eo_prefix); 741 eina_strbuf_replace_all(str_end, "@#EOPREFIX", class_env.upper_eo_prefix);
741 eina_strbuf_replace_all(str_end, "@#eoprefix", class_env.lower_eo_prefix); 742 eina_strbuf_replace_all(str_end, "@#eoprefix", class_env.lower_eo_prefix);
743 eina_strbuf_replace_all(str_end, "@#klasstype_get", eolian_class_c_get_function_name_get(class));
742 744
743 eina_strbuf_reset(tmpbuf); 745 eina_strbuf_reset(tmpbuf);
744 eina_strbuf_replace_all(str_end, "@#ctor_func", eina_strbuf_string_get(tmpbuf)); 746 eina_strbuf_replace_all(str_end, "@#ctor_func", eina_strbuf_string_get(tmpbuf));