summaryrefslogtreecommitdiff
path: root/src/bin
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@osg.samsung.com>2015-05-13 11:14:49 +0100
committerDaniel Kolesa <d.kolesa@osg.samsung.com>2015-05-13 11:14:49 +0100
commitec73644cb60ab9ccb6cd3c7cc2633f082f14ac6b (patch)
tree00d6b0208d25a77cd2f00c66bfcb291c09c7203e /src/bin
parent7a614c80f3022c4da06bd299d25bc6433caab00a (diff)
eolian: generate underscored structs as well as correct opaque struct typedefs
Diffstat (limited to 'src/bin')
-rw-r--r--src/bin/eolian/types_generator.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/eolian/types_generator.c b/src/bin/eolian/types_generator.c
index abe926b6b4..b9d561a79e 100644
--- a/src/bin/eolian/types_generator.c
+++ b/src/bin/eolian/types_generator.c
@@ -87,11 +87,11 @@ _type_generate(const Eolian_Type *tp, Eina_Bool in_typedef, Eina_Bool full)
87 char *name = _concat_name(tp); 87 char *name = _concat_name(tp);
88 if ((in_typedef && name) || tp_type == EOLIAN_TYPE_STRUCT_OPAQUE || !full) 88 if ((in_typedef && name) || tp_type == EOLIAN_TYPE_STRUCT_OPAQUE || !full)
89 { 89 {
90 eina_strbuf_append_printf(buf, "struct %s", name); 90 eina_strbuf_append_printf(buf, "typedef struct _%s %s", name, name);
91 free(name); 91 free(name);
92 break; 92 break;
93 } 93 }
94 eina_strbuf_append_printf(buf, "typedef struct\n{\n"); 94 eina_strbuf_append_printf(buf, "typedef struct _%s\n{\n", name);
95 Eina_Iterator *members = eolian_type_struct_fields_get(tp); 95 Eina_Iterator *members = eolian_type_struct_fields_get(tp);
96 EINA_ITERATOR_FOREACH(members, member) 96 EINA_ITERATOR_FOREACH(members, member)
97 { 97 {