summaryrefslogtreecommitdiff
path: root/src/bin/eolian/sources.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/eolian/sources.c')
-rw-r--r--src/bin/eolian/sources.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/bin/eolian/sources.c b/src/bin/eolian/sources.c
index d1ab3d5870..65957e816f 100644
--- a/src/bin/eolian/sources.c
+++ b/src/bin/eolian/sources.c
@@ -137,7 +137,7 @@ _append_defval(const Eolian_Unit *src, Eina_Strbuf *buf,
137 free(sn); 137 free(sn);
138 return; 138 return;
139 } 139 }
140 Eina_Stringshare *ctp = eolian_type_c_type_get(btp); 140 Eina_Stringshare *ctp = eolian_type_c_type_get(btp, EOLIAN_C_TYPE_DEFAULT);
141 if (strchr(ctp, '*')) 141 if (strchr(ctp, '*'))
142 { 142 {
143 eina_strbuf_append(buf, "NULL"); 143 eina_strbuf_append(buf, "NULL");
@@ -207,7 +207,7 @@ _gen_func(const Eolian_Unit *src, const Eolian_Class *cl,
207 { 207 {
208 const char *prn = eolian_parameter_name_get(pr); 208 const char *prn = eolian_parameter_name_get(pr);
209 const Eolian_Type *pt = eolian_parameter_type_get(pr); 209 const Eolian_Type *pt = eolian_parameter_type_get(pr);
210 Eina_Stringshare *ptn = eolian_type_c_type_get(pt); 210 Eina_Stringshare *ptn = eolian_type_c_type_get(pt, EOLIAN_C_TYPE_PARAM);
211 211
212 if (eina_strbuf_length_get(params)) 212 if (eina_strbuf_length_get(params))
213 eina_strbuf_append(params, ", "); 213 eina_strbuf_append(params, ", ");
@@ -245,7 +245,7 @@ _gen_func(const Eolian_Unit *src, const Eolian_Class *cl,
245 const Eolian_Expression *dfv = eolian_parameter_default_value_get(pr); 245 const Eolian_Expression *dfv = eolian_parameter_default_value_get(pr);
246 const char *prn = eolian_parameter_name_get(pr); 246 const char *prn = eolian_parameter_name_get(pr);
247 const Eolian_Type *pt = eolian_parameter_type_get(pr); 247 const Eolian_Type *pt = eolian_parameter_type_get(pr);
248 Eina_Stringshare *ptn = eolian_type_c_type_get(pt); 248 Eina_Stringshare *ptn = eolian_type_c_type_get(pt, EOLIAN_C_TYPE_PARAM);
249 const Eolian_Typedecl *ptd = eolian_type_typedecl_get(pt); 249 const Eolian_Typedecl *ptd = eolian_type_typedecl_get(pt);
250 250
251 Eina_Bool had_star = ptn[strlen(ptn) - 1] == '*'; 251 Eina_Bool had_star = ptn[strlen(ptn) - 1] == '*';
@@ -317,7 +317,7 @@ _gen_func(const Eolian_Unit *src, const Eolian_Class *cl,
317 if (impl_same_class && eolian_implement_is_pure_virtual(impl, ftype)) 317 if (impl_same_class && eolian_implement_is_pure_virtual(impl, ftype))
318 impl_need = EINA_FALSE; 318 impl_need = EINA_FALSE;
319 319
320 Eina_Stringshare *rtpn = rtp ? eolian_type_c_type_get(rtp) 320 Eina_Stringshare *rtpn = rtp ? eolian_type_c_type_get(rtp, EOLIAN_C_TYPE_RETURN)
321 : eina_stringshare_add("void"); 321 : eina_stringshare_add("void");
322 322
323 char *cname = NULL, *cnamel = NULL, *ocnamel = NULL; 323 char *cname = NULL, *cnamel = NULL, *ocnamel = NULL;
@@ -828,7 +828,7 @@ _gen_params(const Eolian_Function *fid, Eolian_Function_Type ftype,
828 { 828 {
829 const char *prn = eolian_parameter_name_get(pr); 829 const char *prn = eolian_parameter_name_get(pr);
830 const Eolian_Type *pt = eolian_parameter_type_get(pr); 830 const Eolian_Type *pt = eolian_parameter_type_get(pr);
831 Eina_Stringshare *ptn = eolian_type_c_type_get(pt); 831 Eina_Stringshare *ptn = eolian_type_c_type_get(pt, EOLIAN_C_TYPE_PARAM);
832 832
833 eina_strbuf_append(params, ", "); 833 eina_strbuf_append(params, ", ");
834 eina_strbuf_append(params, prn); 834 eina_strbuf_append(params, prn);
@@ -858,7 +858,7 @@ _gen_params(const Eolian_Function *fid, Eolian_Function_Type ftype,
858 const char *prn = eolian_parameter_name_get(pr); 858 const char *prn = eolian_parameter_name_get(pr);
859 const Eolian_Type *pt = eolian_parameter_type_get(pr); 859 const Eolian_Type *pt = eolian_parameter_type_get(pr);
860 const Eolian_Typedecl *ptd = eolian_type_typedecl_get(pt); 860 const Eolian_Typedecl *ptd = eolian_type_typedecl_get(pt);
861 Eina_Stringshare *ptn = eolian_type_c_type_get(pt); 861 Eina_Stringshare *ptn = eolian_type_c_type_get(pt, EOLIAN_C_TYPE_PARAM);
862 862
863 if (ptd && eolian_typedecl_type_get(ptd) == EOLIAN_TYPEDECL_FUNCTION_POINTER) 863 if (ptd && eolian_typedecl_type_get(ptd) == EOLIAN_TYPEDECL_FUNCTION_POINTER)
864 { 864 {
@@ -938,7 +938,7 @@ _gen_proto(const Eolian_Class *cl, const Eolian_Function *fid,
938 eina_strbuf_append(buf, "EOLIAN static "); 938 eina_strbuf_append(buf, "EOLIAN static ");
939 if (rtp) 939 if (rtp)
940 { 940 {
941 Eina_Stringshare *rtpn = eolian_type_c_type_get(rtp); 941 Eina_Stringshare *rtpn = eolian_type_c_type_get(rtp, EOLIAN_C_TYPE_RETURN);
942 eina_strbuf_append(buf, rtpn); 942 eina_strbuf_append(buf, rtpn);
943 eina_stringshare_del(rtpn); 943 eina_stringshare_del(rtpn);
944 } 944 }