summaryrefslogtreecommitdiff
path: root/src/bin/eolian/eo1_generator.c
diff options
context:
space:
mode:
authorDaniel Zaoui <daniel.zaoui@samsung.com>2014-04-11 10:38:53 +0300
committerDaniel Zaoui <daniel.zaoui@samsung.com>2014-04-13 11:30:39 +0300
commitfc9682bd7f3c23fafbc5ad7504ef0affc7ff0fb1 (patch)
tree914c83d4ad9fa99992c39cc2d7b3f877fdbf92c9 /src/bin/eolian/eo1_generator.c
parentbdb8542e3bca2ca8e9a01590c2d470e4d321cb79 (diff)
Eolian: fix generation of Eo2 functions definitions.
When keys are used in property, the Eo2 macro was not well chosen.
Diffstat (limited to '')
-rw-r--r--src/bin/eolian/eo1_generator.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/bin/eolian/eo1_generator.c b/src/bin/eolian/eo1_generator.c
index ce4ffd6f37..fb3bce4d44 100644
--- a/src/bin/eolian/eo1_generator.c
+++ b/src/bin/eolian/eo1_generator.c
@@ -513,7 +513,8 @@ eo1_bind_func_generate(const char *classname, Eolian_Function funcid, Eolian_Fun
513 is_const?"const ":"", ptype, pname, 513 is_const?"const ":"", ptype, pname,
514 is_const?"const ":"", _varg_upgr(ptype)); 514 is_const?"const ":"", _varg_upgr(ptype));
515#endif 515#endif
516 eina_strbuf_append_printf(params, ", %s", pname); 516 if (eina_strbuf_length_get(params)) eina_strbuf_append(params, ", ");
517 eina_strbuf_append_printf(params, "%s", pname);
517 eina_strbuf_append_printf(full_params, ", %s%s %s", 518 eina_strbuf_append_printf(full_params, ", %s%s %s",
518 is_const?"const ":"", 519 is_const?"const ":"",
519 ptype, pname); 520 ptype, pname);
@@ -596,9 +597,8 @@ eo1_bind_func_generate(const char *classname, Eolian_Function funcid, Eolian_Fun
596 { 597 {
597 Eina_Strbuf *eo_func_decl = eina_strbuf_new(); 598 Eina_Strbuf *eo_func_decl = eina_strbuf_new();
598 Eina_Bool has_params = 599 Eina_Bool has_params =
599 !var_as_ret && 600 eina_list_count(eolian_property_keys_list_get(funcid)) ||
600 (eina_list_count(eolian_parameters_list_get(funcid)) != 0 || 601 (!var_as_ret && eina_list_count(eolian_parameters_list_get(funcid)) != 0);
601 eina_list_count(eolian_property_keys_list_get(funcid)));
602 Eina_Bool ret_is_void = (!rettype || !strcmp(rettype, "void")); 602 Eina_Bool ret_is_void = (!rettype || !strcmp(rettype, "void"));
603 eina_strbuf_append_printf(eo_func_decl, 603 eina_strbuf_append_printf(eo_func_decl,
604 "EAPI EO_%sFUNC_BODY%s(%s_%s%s", 604 "EAPI EO_%sFUNC_BODY%s(%s_%s%s",