summaryrefslogtreecommitdiff
path: root/src/bin/eolian/headers.c
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@osg.samsung.com>2016-10-12 15:05:46 +0200
committerDaniel Kolesa <d.kolesa@osg.samsung.com>2016-10-12 15:05:46 +0200
commitd3d63ea8d39378b254728390809c44163bbadb63 (patch)
tree19476db8d1c5decacede3676d497721f682e18f0 /src/bin/eolian/headers.c
parente5d016bb63a55b38e6a8d7f4fa953b35861174e1 (diff)
eolian gen: utilize the new class C name getter instead of manual concat
Diffstat (limited to 'src/bin/eolian/headers.c')
-rw-r--r--src/bin/eolian/headers.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/bin/eolian/headers.c b/src/bin/eolian/headers.c
index 63ec73a..af95b17 100644
--- a/src/bin/eolian/headers.c
+++ b/src/bin/eolian/headers.c
@@ -217,9 +217,11 @@ eo_gen_header_gen(const Eolian_Class *cl, Eina_Strbuf *buf, Eina_Bool legacy)
217 eina_strbuf_free(cdoc); 217 eina_strbuf_free(cdoc);
218 } 218 }
219 } 219 }
220 eina_strbuf_append_printf(buf, "#define %s_%s %s_%s_get()\n\n", 220
221 cnameu, _cl_type_str_get(cl, EINA_TRUE), 221 Eina_Stringshare *mname = eolian_class_c_name_get(cl);
222 cnamel, _cl_type_str_get(cl, EINA_FALSE)); 222 eina_strbuf_append_printf(buf, "#define %s %s_%s_get()\n\n",
223 mname, cnamel, _cl_type_str_get(cl, EINA_FALSE));
224 eina_stringshare_del(mname);
223 225
224 eina_strbuf_append_printf(buf, "EWAPI const Efl_Class *%s_%s_get(void);\n", 226 eina_strbuf_append_printf(buf, "EWAPI const Efl_Class *%s_%s_get(void);\n",
225 cnamel, _cl_type_str_get(cl, EINA_FALSE)); 227 cnamel, _cl_type_str_get(cl, EINA_FALSE));