summaryrefslogtreecommitdiff
path: root/src/bin/eolian
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@samsung.com>2014-08-22 14:04:22 +0100
committerDaniel Kolesa <d.kolesa@samsung.com>2014-08-22 14:04:22 +0100
commit19d8209266321081d2e00406413527e4e0023ad3 (patch)
treead656d457cc4009dbeb6a61a60d34e3d4f999b17 /src/bin/eolian
parent4fa161fffaf3b8f66edf807ec8eb36605cbb126a (diff)
eolian: clean up type generation + fix function pointers
Diffstat (limited to 'src/bin/eolian')
-rw-r--r--src/bin/eolian/types_generator.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/bin/eolian/types_generator.c b/src/bin/eolian/types_generator.c
index 8d279003f3..96481f6b02 100644
--- a/src/bin/eolian/types_generator.c
+++ b/src/bin/eolian/types_generator.c
@@ -60,11 +60,8 @@ _type_generate(const Eolian_Type *tp, Eina_Bool in_typedef)
60 else 60 else
61 { 61 {
62 char *name = _concat_name(tp); 62 char *name = _concat_name(tp);
63 Eina_Stringshare *c_type = eolian_type_c_type_get(base_tp); 63 Eina_Stringshare *c_type = eolian_type_c_type_named_get(base_tp, name);
64 Eina_Bool space = eolian_type_type_get(base_tp) != EOLIAN_TYPE_POINTER; 64 eina_strbuf_append_printf(buf, "typedef %s", c_type);
65 eina_strbuf_append_printf(buf, "typedef %s%s%s",
66 c_type, !name || space ? " " : "",
67 name?name:"");
68 free(name); 65 free(name);
69 } 66 }
70 break; 67 break;