summaryrefslogtreecommitdiff
path: root/src/bin/eolian/eo_generator.c
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@samsung.com>2014-08-13 11:25:04 +0100
committerDaniel Kolesa <d.kolesa@samsung.com>2014-08-21 09:26:04 +0100
commita5964f0252c7e6698ab26f77dfaf0454dd3acbe9 (patch)
tree8c51e452698e614bd8c3dc90f866d3b843f9dab5 /src/bin/eolian/eo_generator.c
parent18c2b5082e1cc6f84d437a6c024474b43d8f420f (diff)
eolian: add comments containing original expressions to generated enum fields
This required a new API, eolian_expression_serialize.
Diffstat (limited to 'src/bin/eolian/eo_generator.c')
-rw-r--r--src/bin/eolian/eo_generator.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/eolian/eo_generator.c b/src/bin/eolian/eo_generator.c
index 48234b0972..90d87b69cf 100644
--- a/src/bin/eolian/eo_generator.c
+++ b/src/bin/eolian/eo_generator.c
@@ -469,11 +469,11 @@ eo_bind_func_generate(const Eolian_Class *class, const Eolian_Function *funcid,
469 const char *val_str = NULL; 469 const char *val_str = NULL;
470 if (default_ret_val) 470 if (default_ret_val)
471 { 471 {
472 Eina_Value *val = NULL; 472 Eina_Value val;
473 Eolian_Expression_Type etp = eolian_expression_eval_type 473 Eolian_Expression_Type etp = eolian_expression_eval_type
474 (default_ret_val, rettypet, &val); 474 (default_ret_val, rettypet, &val);
475 if (etp) 475 if (etp)
476 val_str = eolian_expression_value_to_literal(val, etp); 476 val_str = eolian_expression_value_to_literal(&val, etp);
477 } 477 }
478 eina_strbuf_append_printf(eo_func_decl, ", %s%s, %s", 478 eina_strbuf_append_printf(eo_func_decl, ", %s%s, %s",
479 ret_const ? "const " : "", rettype, 479 ret_const ? "const " : "", rettype,