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)
downloadefl-58a9de0309e5733fbd0fdb0ee0635e2a5970a1fe.tar.gz
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,
if (need_implementation)
{
+ Eina_Bool is_cf = eolian_function_is_class(funcid);
+ if (is_cf)
+ eina_strbuf_append(full_params, " EINA_UNUSED");
eina_strbuf_replace_all(fbody, "@#full_params", eina_strbuf_string_get(full_params));
const char *data_type = eolian_class_data_type_get(class);
- if (data_type && !strcmp(data_type, "null"))
+ if (is_cf || (data_type && !strcmp(data_type, "null")))
eina_strbuf_replace_all(fbody, "@#Datatype_Data", "void");
else
{