From 1a48d11fb99e4e278ffec59bb73afe86763dc3bc Mon Sep 17 00:00:00 2001 From: Daniel Zaoui Date: Sat, 5 Apr 2014 03:22:28 +0300 Subject: [PATCH] Eolian: Fix generation of Eo APIs. When return is forced to void, even if the function contains only one parameter, the return type will be void. --- src/bin/eolian/eo1_generator.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/bin/eolian/eo1_generator.c b/src/bin/eolian/eo1_generator.c index 669125b..ce4ffd6 100644 --- a/src/bin/eolian/eo1_generator.c +++ b/src/bin/eolian/eo1_generator.c @@ -167,7 +167,6 @@ eo1_fundef_generate(const char *classname, Eolian_Function func, Eolian_Function char *fsuffix = ""; rettype = eolian_function_return_type_get(func, ftype); - if (rettype && !strcmp(rettype, "void")) rettype = NULL; if (ftype == EOLIAN_PROP_GET) { fsuffix = "_get"; @@ -468,7 +467,6 @@ eo1_bind_func_generate(const char *classname, Eolian_Function funcid, Eolian_Fun Eina_Strbuf *full_params = eina_strbuf_new(); /* variables types + names */ rettype = eolian_function_return_type_get(funcid, ftype); - if (rettype && !strcmp(rettype, "void")) rettype = NULL; retname = "ret"; if (ftype == EOLIAN_PROP_GET) { -- 2.7.4