summaryrefslogtreecommitdiff
path: root/src/bin/eolian
diff options
context:
space:
mode:
authorMarcel Hollerbach <mail@marcel-hollerbach.de>2019-01-23 14:39:44 +0100
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2019-01-23 16:43:04 +0100
commitbb673d3f702ea938d520f3840a3b31052227ad7c (patch)
tree6539cd37423ef3f0a2658a4cf837266f0f3a592e /src/bin/eolian
parent5c36675f31e221e107761e4a24baf1be7fe5f8a8 (diff)
eolian: add support for the container array
this fixes a lot of different warnings in the efl_mono test generation. Reviewed-by: Daniel Kolesa <daniel@octaforge.org> Differential Revision: https://phab.enlightenment.org/D7730
Diffstat (limited to 'src/bin/eolian')
-rw-r--r--src/bin/eolian/sources.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/bin/eolian/sources.c b/src/bin/eolian/sources.c
index d80ca74..a0caefc 100644
--- a/src/bin/eolian/sources.c
+++ b/src/bin/eolian/sources.c
@@ -258,6 +258,18 @@ _generate_iterative_free(Eina_Strbuf **buf, const Eolian_Type *type, const Eolia
258 eina_strbuf_append_buffer(*buf, param); 258 eina_strbuf_append_buffer(*buf, param);
259 eina_strbuf_append(*buf, ");\n"); 259 eina_strbuf_append(*buf, ");\n");
260 } 260 }
261 else if (t == EOLIAN_TYPE_BUILTIN_ARRAY)
262 {
263 eina_strbuf_append_printf(*buf, " while((");
264 eina_strbuf_append_buffer(*buf, iter_param);
265 eina_strbuf_append_printf(*buf, " = eina_array_pop(");
266 eina_strbuf_append_buffer(*buf, param);
267 eina_strbuf_append_printf(*buf, ")))\n");
268 _generate_loop_content(buf, inner_type, iter_param);
269 eina_strbuf_append_printf(*buf, " eina_array_free(");
270 eina_strbuf_append_buffer(*buf, param);
271 eina_strbuf_append_printf(*buf, ");\n");
272 }
261 else 273 else
262 { 274 {
263 printf("Error, container unknown?! %d\n", (int)t); 275 printf("Error, container unknown?! %d\n", (int)t);