summaryrefslogtreecommitdiff
path: root/src/bin
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@osg.samsung.com>2015-05-12 16:15:29 +0100
committerDaniel Kolesa <d.kolesa@osg.samsung.com>2015-05-12 16:25:52 +0100
commited58165b501d24aee0cffebe464208cdf850ecda (patch)
tree47e6920e584f9a1719f9efc0b5098506ba9de8dd /src/bin
parent2c48b3212a326758bfdbbe2f6bd6f292dcc1cd33 (diff)
eolian: butts
Diffstat (limited to 'src/bin')
-rw-r--r--src/bin/eolian/eo_generator.c4
-rw-r--r--src/bin/eolian/types_generator.c6
2 files changed, 5 insertions, 5 deletions
diff --git a/src/bin/eolian/eo_generator.c b/src/bin/eolian/eo_generator.c
index 617de5f06e..738f32a153 100644
--- a/src/bin/eolian/eo_generator.c
+++ b/src/bin/eolian/eo_generator.c
@@ -468,7 +468,7 @@ eo_bind_func_generate(const Eolian_Class *class, const Eolian_Function *funcid,
468 eina_strbuf_append_printf(params_init, 468 eina_strbuf_append_printf(params_init,
469 " if (%s) *%s = %s;", 469 " if (%s) *%s = %s;",
470 pname, pname, val_str); 470 pname, pname, val_str);
471 if (eolian_expression_type_get(dflt_value) == EOLIAN_EXPR_ENUM) 471 if (eolian_expression_type_get(dflt_value) == EOLIAN_EXPR_NAME)
472 { 472 {
473 Eina_Stringshare *string = eolian_expression_serialize(dflt_value); 473 Eina_Stringshare *string = eolian_expression_serialize(dflt_value);
474 eina_strbuf_append_printf(params_init, " /* %s */", string); 474 eina_strbuf_append_printf(params_init, " /* %s */", string);
@@ -586,7 +586,7 @@ eo_bind_func_generate(const Eolian_Class *class, const Eolian_Function *funcid,
586 eina_strbuf_append_printf(eo_func_decl, ", %s%s, %s", 586 eina_strbuf_append_printf(eo_func_decl, ", %s%s, %s",
587 ret_const ? "const " : "", rettype, 587 ret_const ? "const " : "", rettype,
588 val_str?val_str:"0"); 588 val_str?val_str:"0");
589 if (val_str && eolian_expression_type_get(default_ret_val) == EOLIAN_EXPR_ENUM) 589 if (val_str && eolian_expression_type_get(default_ret_val) == EOLIAN_EXPR_NAME)
590 { 590 {
591 Eina_Stringshare *string = eolian_expression_serialize(default_ret_val); 591 Eina_Stringshare *string = eolian_expression_serialize(default_ret_val);
592 eina_strbuf_append_printf(eo_func_decl, " /* %s */", string); 592 eina_strbuf_append_printf(eo_func_decl, " /* %s */", string);
diff --git a/src/bin/eolian/types_generator.c b/src/bin/eolian/types_generator.c
index 15bf535061..abe926b6b4 100644
--- a/src/bin/eolian/types_generator.c
+++ b/src/bin/eolian/types_generator.c
@@ -91,8 +91,7 @@ _type_generate(const Eolian_Type *tp, Eina_Bool in_typedef, Eina_Bool full)
91 free(name); 91 free(name);
92 break; 92 break;
93 } 93 }
94 eina_strbuf_append_printf(buf, "struct%s%s {\n", name?" ":"", name?name:""); 94 eina_strbuf_append_printf(buf, "typedef struct\n{\n");
95 free(name);
96 Eina_Iterator *members = eolian_type_struct_fields_get(tp); 95 Eina_Iterator *members = eolian_type_struct_fields_get(tp);
97 EINA_ITERATOR_FOREACH(members, member) 96 EINA_ITERATOR_FOREACH(members, member)
98 { 97 {
@@ -106,7 +105,8 @@ _type_generate(const Eolian_Type *tp, Eina_Bool in_typedef, Eina_Bool full)
106 eina_strbuf_append(buf, "\n"); 105 eina_strbuf_append(buf, "\n");
107 } 106 }
108 eina_iterator_free(members); 107 eina_iterator_free(members);
109 eina_strbuf_append(buf, "}"); 108 eina_strbuf_append_printf(buf, "} %s", name);
109 free(name);
110 break; 110 break;
111 } 111 }
112 case EOLIAN_TYPE_ENUM: 112 case EOLIAN_TYPE_ENUM: