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)
downloadefl-d3d63ea8d39378b254728390809c44163bbadb63.tar.gz
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 63ec73a5b1..af95b17fc8 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)
eina_strbuf_free(cdoc);
}
}
- eina_strbuf_append_printf(buf, "#define %s_%s %s_%s_get()\n\n",
- cnameu, _cl_type_str_get(cl, EINA_TRUE),
- cnamel, _cl_type_str_get(cl, EINA_FALSE));
+
+ Eina_Stringshare *mname = eolian_class_c_name_get(cl);
+ eina_strbuf_append_printf(buf, "#define %s %s_%s_get()\n\n",
+ mname, cnamel, _cl_type_str_get(cl, EINA_FALSE));
+ eina_stringshare_del(mname);
eina_strbuf_append_printf(buf, "EWAPI const Efl_Class *%s_%s_get(void);\n",
cnamel, _cl_type_str_get(cl, EINA_FALSE));