summaryrefslogtreecommitdiff
path: root/src/bin/eolian/headers.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/eolian/headers.c')
-rw-r--r--src/bin/eolian/headers.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bin/eolian/headers.c b/src/bin/eolian/headers.c
index 1d11da860a..71d66f3d65 100644
--- a/src/bin/eolian/headers.c
+++ b/src/bin/eolian/headers.c
@@ -58,7 +58,7 @@ _gen_func(const Eolian_Unit *src, const Eolian_Function *fid,
58 eina_strbuf_append(buf, legacy ? "EAPI " : "EOAPI "); 58 eina_strbuf_append(buf, legacy ? "EAPI " : "EOAPI ");
59 if (rtp) 59 if (rtp)
60 { 60 {
61 Eina_Stringshare *rtps = eolian_type_c_type_get(rtp); 61 Eina_Stringshare *rtps = eolian_type_c_type_get(rtp, EOLIAN_C_TYPE_RETURN);
62 eina_strbuf_append(buf, rtps); 62 eina_strbuf_append(buf, rtps);
63 if (rtps[strlen(rtps) - 1] != '*') 63 if (rtps[strlen(rtps) - 1] != '*')
64 eina_strbuf_append_char(buf, ' '); 64 eina_strbuf_append_char(buf, ' ');
@@ -96,7 +96,7 @@ _gen_func(const Eolian_Unit *src, const Eolian_Function *fid,
96 { 96 {
97 const Eolian_Type *prt = eolian_parameter_type_get(pr); 97 const Eolian_Type *prt = eolian_parameter_type_get(pr);
98 const char *prn = eolian_parameter_name_get(pr); 98 const char *prn = eolian_parameter_name_get(pr);
99 Eina_Stringshare *prtn = eolian_type_c_type_get(prt); 99 Eina_Stringshare *prtn = eolian_type_c_type_get(prt, EOLIAN_C_TYPE_PARAM);
100 ++nidx; 100 ++nidx;
101 if (!first) 101 if (!first)
102 eina_strbuf_append(buf, ", "); 102 eina_strbuf_append(buf, ", ");
@@ -130,7 +130,7 @@ _gen_func(const Eolian_Unit *src, const Eolian_Function *fid,
130 const Eolian_Type *prt = eolian_parameter_type_get(pr); 130 const Eolian_Type *prt = eolian_parameter_type_get(pr);
131 const Eolian_Typedecl *ptd = eolian_type_typedecl_get(prt); 131 const Eolian_Typedecl *ptd = eolian_type_typedecl_get(prt);
132 const char *prn = eolian_parameter_name_get(pr); 132 const char *prn = eolian_parameter_name_get(pr);
133 Eina_Stringshare *prtn = eolian_type_c_type_get(prt); 133 Eina_Stringshare *prtn = eolian_type_c_type_get(prt, EOLIAN_C_TYPE_PARAM);
134 134
135 if (ptd && eolian_typedecl_type_get(ptd) == EOLIAN_TYPEDECL_FUNCTION_POINTER) 135 if (ptd && eolian_typedecl_type_get(ptd) == EOLIAN_TYPEDECL_FUNCTION_POINTER)
136 { 136 {