summaryrefslogtreecommitdiff
path: root/src/bin/eolian/eo_generator.c
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@samsung.com>2014-07-08 14:15:36 +0100
committerDaniel Kolesa <d.kolesa@samsung.com>2014-07-08 14:15:36 +0100
commit53fb9515e9dbaf9fb4a933cb9baee510b47c32e9 (patch)
tree9eb2d2cb8e02f2198679ba28df8d2bb3e836d07a /src/bin/eolian/eo_generator.c
parentae5a5b3b966a159e2716258c24a921a68335e8c2 (diff)
eolian/generator: add asterisk on inout too
Diffstat (limited to 'src/bin/eolian/eo_generator.c')
-rw-r--r--src/bin/eolian/eo_generator.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/eolian/eo_generator.c b/src/bin/eolian/eo_generator.c
index 2df68df705..9231d08d87 100644
--- a/src/bin/eolian/eo_generator.c
+++ b/src/bin/eolian/eo_generator.c
@@ -187,7 +187,7 @@ eo_fundef_generate(const Eolian_Class class, Eolian_Function func, Eolian_Functi
187 pdir = EOLIAN_OUT_PARAM; 187 pdir = EOLIAN_OUT_PARAM;
188 } 188 }
189 if (ftype == EOLIAN_PROP_SET) pdir = EOLIAN_IN_PARAM; 189 if (ftype == EOLIAN_PROP_SET) pdir = EOLIAN_IN_PARAM;
190 if (ftype == EOLIAN_UNRESOLVED || ftype == EOLIAN_METHOD) add_star = (pdir == EOLIAN_OUT_PARAM); 190 if (ftype == EOLIAN_UNRESOLVED || ftype == EOLIAN_METHOD) add_star = (pdir == EOLIAN_OUT_PARAM || pdir == EOLIAN_INOUT_PARAM);
191 Eina_Bool had_star = !!strchr(ptype, '*'); 191 Eina_Bool had_star = !!strchr(ptype, '*');
192 192
193 const char *dir_str = str_dir[(int)pdir]; 193 const char *dir_str = str_dir[(int)pdir];
@@ -402,7 +402,7 @@ eo_bind_func_generate(const Eolian_Class class, Eolian_Function funcid, Eolian_F
402 402
403 Eina_Bool is_const = eolian_parameter_const_attribute_get(data, ftype == EOLIAN_PROP_GET); 403 Eina_Bool is_const = eolian_parameter_const_attribute_get(data, ftype == EOLIAN_PROP_GET);
404 Eina_Bool had_star = !!strchr(ptype, '*'); 404 Eina_Bool had_star = !!strchr(ptype, '*');
405 if (ftype == EOLIAN_UNRESOLVED || ftype == EOLIAN_METHOD) add_star = (pdir == EOLIAN_OUT_PARAM); 405 if (ftype == EOLIAN_UNRESOLVED || ftype == EOLIAN_METHOD) add_star = (pdir == EOLIAN_OUT_PARAM || pdir == EOLIAN_INOUT_PARAM);
406 if (eina_strbuf_length_get(params)) eina_strbuf_append(params, ", "); 406 if (eina_strbuf_length_get(params)) eina_strbuf_append(params, ", ");
407 eina_strbuf_append_printf(params, "%s", pname); 407 eina_strbuf_append_printf(params, "%s", pname);
408 eina_strbuf_append_printf(full_params, ", %s%s%s%s%s", 408 eina_strbuf_append_printf(full_params, ", %s%s%s%s%s",