summaryrefslogtreecommitdiff
path: root/src/bin/eolian
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@samsung.com>2014-08-27 11:38:05 +0100
committerDaniel Kolesa <d.kolesa@samsung.com>2014-08-27 11:38:26 +0100
commit901d1343fd4060977fe4ba3c4808a66713cae63d (patch)
treeb70f66b44d8c5a9871de46deff3f2ddaef995670 /src/bin/eolian
parenta9a7ed6c52a30dd7d565194466f2fba78933e5e7 (diff)
eolian: no need to concat name in this case
Diffstat (limited to 'src/bin/eolian')
-rw-r--r--src/bin/eolian/types_generator.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/bin/eolian/types_generator.c b/src/bin/eolian/types_generator.c
index 8920f37b10..53277925b9 100644
--- a/src/bin/eolian/types_generator.c
+++ b/src/bin/eolian/types_generator.c
@@ -103,12 +103,10 @@ _type_generate(const Eolian_Type *tp, Eina_Bool in_typedef, Eina_Bool full)
103 case EOLIAN_TYPE_ENUM: 103 case EOLIAN_TYPE_ENUM:
104 { 104 {
105 const Eolian_Enum_Type_Field *member; 105 const Eolian_Enum_Type_Field *member;
106 char *name = _concat_name(tp); 106 char *name;
107 if (!full) 107 if (!full)
108 { 108 break;
109 free(name); 109 name = _concat_name(tp);
110 break;
111 }
112 if (in_typedef) 110 if (in_typedef)
113 { 111 {
114 eina_strbuf_append_printf(buf, "enum %s", name); 112 eina_strbuf_append_printf(buf, "enum %s", name);