q66 pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=189bc4512d1283aa425e640c5992e46d9c1ecd89
commit 189bc4512d1283aa425e640c5992e46d9c1ecd89 Author: Daniel Kolesa <[email protected]> Date: Fri Aug 22 13:45:20 2014 +0100 eolian: fix type generation for function pointers --- src/bin/eolian/types_generator.c | 3 ++- src/lib/eolian/database_type.c | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/bin/eolian/types_generator.c b/src/bin/eolian/types_generator.c index 2f8a15d..8d27900 100644 --- a/src/bin/eolian/types_generator.c +++ b/src/bin/eolian/types_generator.c @@ -61,8 +61,9 @@ _type_generate(const Eolian_Type *tp, Eina_Bool in_typedef) { char *name = _concat_name(tp); Eina_Stringshare *c_type = eolian_type_c_type_get(base_tp); + Eina_Bool space = eolian_type_type_get(base_tp) != EOLIAN_TYPE_POINTER; eina_strbuf_append_printf(buf, "typedef %s%s%s", - c_type, !name || strchr(c_type, '*')?"":" ", + c_type, !name || space ? " " : "", name?name:""); free(name); } diff --git a/src/lib/eolian/database_type.c b/src/lib/eolian/database_type.c index 47e2ea9..ca70cfd 100644 --- a/src/lib/eolian/database_type.c +++ b/src/lib/eolian/database_type.c @@ -89,6 +89,7 @@ _ftype_to_str(const Eolian_Type *tp, Eina_Strbuf *buf, const char *name) first = EINA_FALSE; database_type_to_str(stp, buf, NULL); } + eina_strbuf_append(buf, ")"); } static void --
