summaryrefslogtreecommitdiff
path: root/src/bin/eolian/types_generator.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/eolian/types_generator.c')
-rw-r--r--src/bin/eolian/types_generator.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/bin/eolian/types_generator.c b/src/bin/eolian/types_generator.c
index 9da055816f..a92ff436b2 100644
--- a/src/bin/eolian/types_generator.c
+++ b/src/bin/eolian/types_generator.c
@@ -134,11 +134,12 @@ _type_generate(const Eolian_Type *tp, Eina_Bool in_typedef)
134 eina_strbuf_append_printf(buf, " %s", eina_strbuf_string_get(membuf)); 134 eina_strbuf_append_printf(buf, " %s", eina_strbuf_string_get(membuf));
135 else 135 else
136 { 136 {
137 Eina_Value *v = NULL; 137 Eina_Value v;
138 Eolian_Expression_Type et = eolian_expression_eval(member, EOLIAN_MASK_INT, &v); 138 Eolian_Expression_Type et = eolian_expression_eval(member, EOLIAN_MASK_INT, &v);
139 const char *lit = eolian_expression_value_to_literal(v, et); 139 const char *lit = eolian_expression_value_to_literal(&v, et);
140 eina_strbuf_append_printf(buf, " %s = %s", eina_strbuf_string_get(membuf), lit); 140 eina_strbuf_append_printf(buf, " %s = %s", eina_strbuf_string_get(membuf), lit);
141 eina_stringshare_del(lit); 141 eina_stringshare_del(lit);
142 eina_value_flush(&v);
142 } 143 }
143 next = eina_iterator_next(members, (void**)&member_name); 144 next = eina_iterator_next(members, (void**)&member_name);
144 if (next) 145 if (next)