summaryrefslogtreecommitdiff
path: root/src/bin/eolian/eo_generator.c
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@samsung.com>2014-08-18 13:12:08 +0100
committerDaniel Kolesa <d.kolesa@samsung.com>2014-08-21 09:26:05 +0100
commite6954d143d959fef5f9caec48fb2009f7a18a190 (patch)
tree6908361cdf8ef92668d8273ef14fee24bdd6163f /src/bin/eolian/eo_generator.c
parentdbf48c0eccfe70bbde6de5036947b3cc916b2d9f (diff)
eolian: drop Eina_Value
Because of Eina_Value being less than optimal in our usage, we're dropping it in Eolian. This simplifies the code and makes it easier to bind to other languages, which will aid new generators. Also, we're dropping long double support from eo files and expressions as it causes an ABI breakage in gcc 4.4.
Diffstat (limited to 'src/bin/eolian/eo_generator.c')
-rw-r--r--src/bin/eolian/eo_generator.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/bin/eolian/eo_generator.c b/src/bin/eolian/eo_generator.c
index be294d35ec..5be19c806c 100644
--- a/src/bin/eolian/eo_generator.c
+++ b/src/bin/eolian/eo_generator.c
@@ -463,11 +463,10 @@ eo_bind_func_generate(const Eolian_Class *class, const Eolian_Function *funcid,
463 const char *val_str = NULL; 463 const char *val_str = NULL;
464 if (default_ret_val) 464 if (default_ret_val)
465 { 465 {
466 Eina_Value val; 466 Eolian_Value val = eolian_expression_eval_type
467 Eolian_Expression_Type etp = eolian_expression_eval_type 467 (default_ret_val, rettypet);
468 (default_ret_val, rettypet, &val); 468 if (val.type)
469 if (etp) 469 val_str = eolian_expression_value_to_literal(&val);
470 val_str = eolian_expression_value_to_literal(&val, etp);
471 } 470 }
472 eina_strbuf_append_printf(eo_func_decl, ", %s%s, %s", 471 eina_strbuf_append_printf(eo_func_decl, ", %s%s, %s",
473 ret_const ? "const " : "", rettype, 472 ret_const ? "const " : "", rettype,