ret_const?"const ":"",
rettype, had_star?"":" ");
Eina_Strbuf *ret_param = eina_strbuf_new();
- if (rettype) eina_strbuf_append_printf(ret_param, "%s _%s = ", rettype, retname);
+ if (rettype) eina_strbuf_append_printf(ret_param, "%s%s%s_%s = ", ret_const?"const ":"", rettype, had_star?"":" ", retname);
eina_strbuf_replace_all(fbody, "@#ret_param", eina_strbuf_string_get(ret_param));
sprintf(tmpstr, "%s%s", ret_const?"const ":"", rettype);
eina_strbuf_replace_all(fbody, "@#ret_type", tmpstr);
{
if (eina_strbuf_length_get(eoparam)) eina_strbuf_append(eoparam, ", ");
Eina_Bool had_star = !!strchr(rettype, '*');
- sprintf (tmpstr, " %s%s%s%s;\n", ret_const?"const ":"", rettype, had_star?"":" ", retname);
+ sprintf (tmpstr, " %s%s%s%s%s;\n",
+ ret_const?"const ":"", rettype, had_star?"":" ", retname,
+ had_star?" = NULL":"");
eina_strbuf_append_printf(eoparam, "&%s", retname);
}