summaryrefslogtreecommitdiff
path: root/src/bin/eolian/types_generator.c
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@osg.samsung.com>2016-03-14 16:58:09 +0000
committerDaniel Kolesa <d.kolesa@osg.samsung.com>2016-03-14 16:58:09 +0000
commitfbd9defdd4f7d06d33810500e133a41fb8fa4699 (patch)
tree5cbde87d82339208720855ca7dbdb1ca89074415 /src/bin/eolian/types_generator.c
parent142cb17faddfba2f4c37cdd4d6ac690870456d63 (diff)
eolian generator: simplify typedef gen
Diffstat (limited to '')
-rw-r--r--src/bin/eolian/types_generator.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/bin/eolian/types_generator.c b/src/bin/eolian/types_generator.c
index adea8196c2..59954054e1 100644
--- a/src/bin/eolian/types_generator.c
+++ b/src/bin/eolian/types_generator.c
@@ -49,12 +49,9 @@ _type_generate(const Eolian_Typedecl *tp, Eina_Bool full, Eina_Bool use_legacy)
49 { 49 {
50 case EOLIAN_TYPEDECL_ALIAS: 50 case EOLIAN_TYPEDECL_ALIAS:
51 { 51 {
52 char *name = _concat_name(tp); 52 Eina_Stringshare *tn = eolian_typedecl_c_type_get(tp);
53 Eina_Stringshare *c_type = eolian_type_c_type_named_get( 53 eina_strbuf_append(buf, tn);
54 eolian_typedecl_base_type_get(tp), name); 54 eina_stringshare_del(tn);
55 eina_strbuf_append_printf(buf, "typedef %s", c_type);
56 eina_stringshare_del(c_type);
57 free(name);
58 break; 55 break;
59 } 56 }
60 case EOLIAN_TYPEDECL_STRUCT: 57 case EOLIAN_TYPEDECL_STRUCT: