summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@osg.samsung.com>2016-09-29 15:12:21 +0200
committerDaniel Kolesa <d.kolesa@osg.samsung.com>2016-10-07 11:54:23 +0200
commit8a39a96bc5f7b2ba9bb37bbf5244872ce64a357a (patch)
tree27e603e621fd41c96b58852b4fea6eb0a0a55dec
parent527293557348f6196333ea79bb1ed360312c23b8 (diff)
eolian gen2: terminate EFL_OPS_DEFINE list
-rw-r--r--src/bin/eolian2/sources.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/bin/eolian2/sources.c b/src/bin/eolian2/sources.c
index b89c72b9e3..6b836e2998 100644
--- a/src/bin/eolian2/sources.c
+++ b/src/bin/eolian2/sources.c
@@ -491,14 +491,19 @@ _gen_initializer(const Eolian_Class *cl, Eina_Strbuf *buf)
491 free(ocnamel); 491 free(ocnamel);
492 } 492 }
493 493
494 /* strip the final comma before appending */
494 if (eina_strbuf_length_get(ops)) 495 if (eina_strbuf_length_get(ops))
495 { 496 {
496 eina_strbuf_append(ops, " );\n"); 497 eina_strbuf_remove(ops, eina_strbuf_length_get(ops) - 2,
498 eina_strbuf_length_get(ops));
499 eina_strbuf_append(ops, "\n );\n");
497 eina_strbuf_append(buf, eina_strbuf_string_get(ops)); 500 eina_strbuf_append(buf, eina_strbuf_string_get(ops));
498 } 501 }
499 if (eina_strbuf_length_get(cops)) 502 if (eina_strbuf_length_get(cops))
500 { 503 {
501 eina_strbuf_append(cops, " );\n"); 504 eina_strbuf_remove(cops, eina_strbuf_length_get(cops) - 2,
505 eina_strbuf_length_get(cops));
506 eina_strbuf_append(cops, "\n );\n");
502 eina_strbuf_append(buf, eina_strbuf_string_get(cops)); 507 eina_strbuf_append(buf, eina_strbuf_string_get(cops));
503 } 508 }
504 509