summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/bin/eolian/eo1_generator.c2
-rw-r--r--src/bin/eolian/legacy_generator.c4
2 files changed, 4 insertions, 2 deletions
diff --git a/src/bin/eolian/eo1_generator.c b/src/bin/eolian/eo1_generator.c
index 0b02d5b758..7ca7628411 100644
--- a/src/bin/eolian/eo1_generator.c
+++ b/src/bin/eolian/eo1_generator.c
@@ -431,7 +431,7 @@ eo1_bind_func_generate(const char *classname, Eolian_Function funcid, Eolian_Fun
431 ret_const?"const ":"", 431 ret_const?"const ":"",
432 rettype, had_star?"":" "); 432 rettype, had_star?"":" ");
433 Eina_Strbuf *ret_param = eina_strbuf_new(); 433 Eina_Strbuf *ret_param = eina_strbuf_new();
434 if (rettype) eina_strbuf_append_printf(ret_param, "%s _%s = ", rettype, retname); 434 if (rettype) eina_strbuf_append_printf(ret_param, "%s%s%s_%s = ", ret_const?"const ":"", rettype, had_star?"":" ", retname);
435 eina_strbuf_replace_all(fbody, "@#ret_param", eina_strbuf_string_get(ret_param)); 435 eina_strbuf_replace_all(fbody, "@#ret_param", eina_strbuf_string_get(ret_param));
436 sprintf(tmpstr, "%s%s", ret_const?"const ":"", rettype); 436 sprintf(tmpstr, "%s%s", ret_const?"const ":"", rettype);
437 eina_strbuf_replace_all(fbody, "@#ret_type", tmpstr); 437 eina_strbuf_replace_all(fbody, "@#ret_type", tmpstr);
diff --git a/src/bin/eolian/legacy_generator.c b/src/bin/eolian/legacy_generator.c
index f7b236333e..301886ee6e 100644
--- a/src/bin/eolian/legacy_generator.c
+++ b/src/bin/eolian/legacy_generator.c
@@ -298,7 +298,9 @@ _eapi_func_generate(const char *classname, Eolian_Function funcid, Eolian_Functi
298 { 298 {
299 if (eina_strbuf_length_get(eoparam)) eina_strbuf_append(eoparam, ", "); 299 if (eina_strbuf_length_get(eoparam)) eina_strbuf_append(eoparam, ", ");
300 Eina_Bool had_star = !!strchr(rettype, '*'); 300 Eina_Bool had_star = !!strchr(rettype, '*');
301 sprintf (tmpstr, " %s%s%s%s;\n", ret_const?"const ":"", rettype, had_star?"":" ", retname); 301 sprintf (tmpstr, " %s%s%s%s%s;\n",
302 ret_const?"const ":"", rettype, had_star?"":" ", retname,
303 had_star?" = NULL":"");
302 eina_strbuf_append_printf(eoparam, "&%s", retname); 304 eina_strbuf_append_printf(eoparam, "&%s", retname);
303 } 305 }
304 306