Eolian: Fix generation of Eo APIs.
authorDaniel Zaoui <daniel.zaoui@samsung.com>
Sat, 5 Apr 2014 00:22:28 +0000 (03:22 +0300)
committerDaniel Zaoui <daniel.zaoui@samsung.com>
Thu, 10 Apr 2014 08:24:04 +0000 (11:24 +0300)
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

index 669125b..ce4ffd6 100644 (file)
@@ -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)
      {