diff options
author | Daniel Zaoui <daniel.zaoui@samsung.com> | 2014-04-05 03:22:28 +0300 |
---|---|---|
committer | Daniel Zaoui <daniel.zaoui@samsung.com> | 2014-04-10 11:24:04 +0300 |
commit | 1a48d11fb99e4e278ffec59bb73afe86763dc3bc (patch) | |
tree | 5c0c511c1470b52ff0d45ea012d706c12fe53bc5 /src/bin/eolian/eo1_generator.c | |
parent | ca6e6c93f53e7f63a04a7f3f2fde7a2693f777ba (diff) |
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.
Diffstat (limited to 'src/bin/eolian/eo1_generator.c')
-rw-r--r-- | src/bin/eolian/eo1_generator.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/bin/eolian/eo1_generator.c b/src/bin/eolian/eo1_generator.c index 669125b1cf..ce4ffd6f37 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 | |||
167 | 167 | ||
168 | char *fsuffix = ""; | 168 | char *fsuffix = ""; |
169 | rettype = eolian_function_return_type_get(func, ftype); | 169 | rettype = eolian_function_return_type_get(func, ftype); |
170 | if (rettype && !strcmp(rettype, "void")) rettype = NULL; | ||
171 | if (ftype == EOLIAN_PROP_GET) | 170 | if (ftype == EOLIAN_PROP_GET) |
172 | { | 171 | { |
173 | fsuffix = "_get"; | 172 | fsuffix = "_get"; |
@@ -468,7 +467,6 @@ eo1_bind_func_generate(const char *classname, Eolian_Function funcid, Eolian_Fun | |||
468 | Eina_Strbuf *full_params = eina_strbuf_new(); /* variables types + names */ | 467 | Eina_Strbuf *full_params = eina_strbuf_new(); /* variables types + names */ |
469 | 468 | ||
470 | rettype = eolian_function_return_type_get(funcid, ftype); | 469 | rettype = eolian_function_return_type_get(funcid, ftype); |
471 | if (rettype && !strcmp(rettype, "void")) rettype = NULL; | ||
472 | retname = "ret"; | 470 | retname = "ret"; |
473 | if (ftype == EOLIAN_PROP_GET) | 471 | if (ftype == EOLIAN_PROP_GET) |
474 | { | 472 | { |