summaryrefslogtreecommitdiff
path: root/src/bin/eolian/eo_generator.c
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@samsung.com>2014-07-28 10:16:15 +0100
committerDaniel Kolesa <d.kolesa@samsung.com>2014-07-28 10:16:15 +0100
commit64c2b292ba76cdaffee0feaf9b0fe3548d58cb89 (patch)
tree085a1a565e9d7e473ecbb65d832f5f01643fda92 /src/bin/eolian/eo_generator.c
parentc0297197d79d84802fa1aa72c1cb70a123d84feb (diff)
eolian: preliminary eo file support for builtin true/false/null
Real API will use the new expression system, but that won't get into 1.11.
Diffstat (limited to 'src/bin/eolian/eo_generator.c')
-rw-r--r--src/bin/eolian/eo_generator.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/bin/eolian/eo_generator.c b/src/bin/eolian/eo_generator.c
index b5cb4021ba..65690d192d 100644
--- a/src/bin/eolian/eo_generator.c
+++ b/src/bin/eolian/eo_generator.c
@@ -466,6 +466,15 @@ eo_bind_func_generate(const Eolian_Class *class, const Eolian_Function *funcid,
466 { 466 {
467 const char *default_ret_val = 467 const char *default_ret_val =
468 eolian_function_return_default_value_get(funcid, ftype); 468 eolian_function_return_default_value_get(funcid, ftype);
469 if (default_ret_val)
470 {
471 if (!strcmp(default_ret_val, "true"))
472 default_ret_val = "EINA_TRUE";
473 else if (!strcmp(default_ret_val, "false"))
474 default_ret_val = "EINA_FALSE";
475 else if (!strcmp(default_ret_val, "null"))
476 default_ret_val = "NULL";
477 }
469 eina_strbuf_append_printf(eo_func_decl, ", %s%s, %s", 478 eina_strbuf_append_printf(eo_func_decl, ", %s%s, %s",
470 ret_const ? "const " : "", rettype, 479 ret_const ? "const " : "", rettype,
471 default_ret_val?default_ret_val:"0"); 480 default_ret_val?default_ret_val:"0");