summaryrefslogtreecommitdiff
path: root/src/bin/eolian/eo_generator.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/eolian/eo_generator.c')
-rw-r--r--src/bin/eolian/eo_generator.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/bin/eolian/eo_generator.c b/src/bin/eolian/eo_generator.c
index 7d98eb9342..d31a656a80 100644
--- a/src/bin/eolian/eo_generator.c
+++ b/src/bin/eolian/eo_generator.c
@@ -512,12 +512,13 @@ eo_bind_func_generate(const Eolian_Class *class, const Eolian_Function *funcid,
512 /* Generation of the user function prototype declaration - not needed when @auto and @empty are indicated */ 512 /* Generation of the user function prototype declaration - not needed when @auto and @empty are indicated */
513 if (!is_empty && !is_auto) 513 if (!is_empty && !is_auto)
514 { 514 {
515 eina_strbuf_append_printf(fbody, "%s _%s%s%s_%s%s(Eo *obj, @#Datatype_Data *pd%s);\n\n", 515 eina_strbuf_append_printf(fbody, "%s _%s%s%s_%s%s(%sEo *obj, @#Datatype_Data *pd%s);\n\n",
516 rettype?rettype:"void", 516 rettype?rettype:"void",
517 class_env.lower_classname, 517 class_env.lower_classname,
518 impl_env?"_":"", 518 impl_env?"_":"",
519 impl_env?impl_env->lower_classname:"", 519 impl_env?impl_env->lower_classname:"",
520 eolian_function_name_get(funcid), suffix, 520 eolian_function_name_get(funcid), suffix,
521 eolian_function_object_is_const(funcid)?"const ":"",
521 eina_strbuf_string_get(full_params)); 522 eina_strbuf_string_get(full_params));
522 } 523 }
523 524
@@ -527,12 +528,13 @@ eo_bind_func_generate(const Eolian_Class *class, const Eolian_Function *funcid,
527 eina_hash_add(_funcs_params_init, 528 eina_hash_add(_funcs_params_init,
528 eina_stringshare_add(eolian_function_name_get(funcid)), (void *)ftype); 529 eina_stringshare_add(eolian_function_name_get(funcid)), (void *)ftype);
529 /* Generation of the intermediate function __eolian_... */ 530 /* Generation of the intermediate function __eolian_... */
530 eina_strbuf_append_printf(fbody, "static %s __eolian_%s%s%s_%s%s(Eo *obj%s, @#Datatype_Data *pd%s%s)\n{\n", 531 eina_strbuf_append_printf(fbody, "static %s __eolian_%s%s%s_%s%s(%sEo *obj%s, @#Datatype_Data *pd%s%s)\n{\n",
531 rettype?rettype:"void", 532 rettype?rettype:"void",
532 class_env.lower_classname, 533 class_env.lower_classname,
533 impl_env?"_":"", 534 impl_env?"_":"",
534 impl_env?impl_env->lower_classname:"", 535 impl_env?impl_env->lower_classname:"",
535 eolian_function_name_get(funcid), suffix, 536 eolian_function_name_get(funcid), suffix,
537 eolian_function_object_is_const(funcid)?"const ":"",
536 is_empty || is_auto?" EINA_UNUSED":"", 538 is_empty || is_auto?" EINA_UNUSED":"",
537 is_empty || (is_auto && !eina_strbuf_length_get(params_init))?" EINA_UNUSED":"", 539 is_empty || (is_auto && !eina_strbuf_length_get(params_init))?" EINA_UNUSED":"",
538 eina_strbuf_string_get(full_params)); 540 eina_strbuf_string_get(full_params));