summaryrefslogtreecommitdiff
path: root/src/bin/eolian
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@samsung.com>2014-08-01 15:20:02 +0100
committerDaniel Kolesa <d.kolesa@samsung.com>2014-08-21 09:26:03 +0100
commit520275c66b5ea2c2e8d94537ed81d1bac73974e2 (patch)
tree007d0c75866024e4b463bececc5a5e4701944c03 /src/bin/eolian
parentbb24b606380747e795aec3f468833bde3327dab1 (diff)
eolian: use newly created implicit typedefs in legacy API
Also update tests accordingly.
Diffstat (limited to 'src/bin/eolian')
-rw-r--r--src/bin/eolian/legacy_generator.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/bin/eolian/legacy_generator.c b/src/bin/eolian/legacy_generator.c
index 52303a525a..8e0efbdc04 100644
--- a/src/bin/eolian/legacy_generator.c
+++ b/src/bin/eolian/legacy_generator.c
@@ -89,7 +89,7 @@ _eapi_decl_func_generate(const Eolian_Class *class, const Eolian_Function *funci
89 { 89 {
90 if (ftype == EOLIAN_PROP_GET || eolian_function_object_is_const(funcid)) 90 if (ftype == EOLIAN_PROP_GET || eolian_function_object_is_const(funcid))
91 eina_strbuf_append(fparam, "const "); 91 eina_strbuf_append(fparam, "const ");
92 eina_strbuf_append(fparam, "Eo *obj"); 92 eina_strbuf_append_printf(fparam, "%s *obj", class_env.full_classname);
93 } 93 }
94 sprintf (tmpstr, "comment%s", suffix); 94 sprintf (tmpstr, "comment%s", suffix);
95 const char *desc = eolian_function_description_get(funcid, tmpstr); 95 const char *desc = eolian_function_description_get(funcid, tmpstr);
@@ -263,8 +263,10 @@ _eapi_func_generate(const Eolian_Class *class, const Eolian_Function *funcid, Eo
263 { 263 {
264 if (ftype == EOLIAN_PROP_GET || eolian_function_object_is_const(funcid)) 264 if (ftype == EOLIAN_PROP_GET || eolian_function_object_is_const(funcid))
265 eina_strbuf_append(fparam, "const "); 265 eina_strbuf_append(fparam, "const ");
266 eina_strbuf_append(fparam, "Eo *obj"); 266 eina_strbuf_append_printf(fparam, "%s *obj", class_env.full_classname);
267 eina_strbuf_replace_all(fbody, "@#eo_obj", "(Eo *)obj"); 267 char buf[256];
268 snprintf(buf, sizeof(buf), "(%s *)obj", class_env.full_classname);
269 eina_strbuf_replace_all(fbody, "@#eo_obj", buf);
268 } 270 }
269 else 271 else
270 { 272 {