summaryrefslogtreecommitdiff
path: root/src/bin/eolian
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@samsung.com>2014-07-24 15:32:34 +0100
committerDaniel Kolesa <d.kolesa@samsung.com>2014-07-24 15:32:34 +0100
commit58a9de0309e5733fbd0fdb0ee0635e2a5970a1fe (patch)
treea68b77cd633e42886c290eaa758a1d349dc67738 /src/bin/eolian
parente2c51100c78d16bc11093971eb2f729b3c513cdb (diff)
eolian/generator: properly generate the data arg on class methods
For class methods, we need to generate unused void*, not a pointer to data struct.
Diffstat (limited to 'src/bin/eolian')
-rw-r--r--src/bin/eolian/eo_generator.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/bin/eolian/eo_generator.c b/src/bin/eolian/eo_generator.c
index 3601640bb0..b5cb4021ba 100644
--- a/src/bin/eolian/eo_generator.c
+++ b/src/bin/eolian/eo_generator.c
@@ -484,9 +484,12 @@ eo_bind_func_generate(const Eolian_Class *class, const Eolian_Function *funcid,
484 484
485 if (need_implementation) 485 if (need_implementation)
486 { 486 {
487 Eina_Bool is_cf = eolian_function_is_class(funcid);
488 if (is_cf)
489 eina_strbuf_append(full_params, " EINA_UNUSED");
487 eina_strbuf_replace_all(fbody, "@#full_params", eina_strbuf_string_get(full_params)); 490 eina_strbuf_replace_all(fbody, "@#full_params", eina_strbuf_string_get(full_params));
488 const char *data_type = eolian_class_data_type_get(class); 491 const char *data_type = eolian_class_data_type_get(class);
489 if (data_type && !strcmp(data_type, "null")) 492 if (is_cf || (data_type && !strcmp(data_type, "null")))
490 eina_strbuf_replace_all(fbody, "@#Datatype_Data", "void"); 493 eina_strbuf_replace_all(fbody, "@#Datatype_Data", "void");
491 else 494 else
492 { 495 {