From d3f343bdcced4ab88ef694fc900b978f4b2cfe75 Mon Sep 17 00:00:00 2001 From: Daniel Zaoui Date: Tue, 11 Mar 2014 14:00:44 +0200 Subject: [PATCH] Eolian/Generator: fix type when no data type exists. When data is set as "null", the generator was writing for this data variable "void * *_pd" instead of "void *_pd". --- src/bin/eolian/eo1_generator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/eolian/eo1_generator.c b/src/bin/eolian/eo1_generator.c index b3cf366..0b02d5b 100644 --- a/src/bin/eolian/eo1_generator.c +++ b/src/bin/eolian/eo1_generator.c @@ -460,7 +460,7 @@ eo1_bind_func_generate(const char *classname, Eolian_Function funcid, Eolian_Fun eina_strbuf_replace_all(fbody, "@#list_params", eina_strbuf_string_get(params)); const char *data_type = eolian_class_data_type_get(classname); if (data_type && !strcmp(data_type, "null")) - eina_strbuf_replace_all(fbody, "@#Datatype_Data", "void *"); + eina_strbuf_replace_all(fbody, "@#Datatype_Data", "void"); else { if (data_type) eina_strbuf_replace_all(fbody, "@#Datatype_Data", data_type); -- 2.7.4