summaryrefslogtreecommitdiff
path: root/src/bin/eolian
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@samsung.com>2014-09-25 15:37:18 +0100
committerDaniel Kolesa <d.kolesa@samsung.com>2014-09-25 15:37:18 +0100
commit8631212e454a26ddd51bdf9a2d6c9090fa23b36f (patch)
tree259188a8087015fa2fdcb82e1e06f0e4ae600c0d /src/bin/eolian
parent13a9650491edac356c098a2c605a444d2e16af09 (diff)
eolian: remove the need to pass prefix to eolian_function_full_c_name_get
Diffstat (limited to 'src/bin/eolian')
-rw-r--r--src/bin/eolian/common_funcs.c5
-rw-r--r--src/bin/eolian/eo_generator.c2
2 files changed, 2 insertions, 5 deletions
diff --git a/src/bin/eolian/common_funcs.c b/src/bin/eolian/common_funcs.c
index faa52bb6ff..4bfd3036e7 100644
--- a/src/bin/eolian/common_funcs.c
+++ b/src/bin/eolian/common_funcs.c
@@ -98,12 +98,9 @@ _class_func_env_create(const Eolian_Class *class, const char *funcname, Eolian_F
98 p = strncpy(env->upper_func, funcname, PATH_MAX - 1); 98 p = strncpy(env->upper_func, funcname, PATH_MAX - 1);
99 eina_str_toupper(&p); 99 eina_str_toupper(&p);
100 100
101 ret = eolian_function_full_c_name_get(funcid, tmp_env.upper_eo_prefix); 101 ret = eolian_function_full_c_name_get(funcid);
102 sprintf(p = env->upper_eo_func, "%s%s", ret, suffix); 102 sprintf(p = env->upper_eo_func, "%s%s", ret, suffix);
103 eina_str_toupper(&p); 103 eina_str_toupper(&p);
104 eina_stringshare_del(ret);
105
106 ret = eolian_function_full_c_name_get(funcid, tmp_env.lower_eo_prefix);
107 sprintf(p = env->lower_eo_func, "%s%s", ret, suffix); 104 sprintf(p = env->lower_eo_func, "%s%s", ret, suffix);
108 eina_str_tolower(&p); 105 eina_str_tolower(&p);
109 eina_stringshare_del(ret); 106 eina_stringshare_del(ret);
diff --git a/src/bin/eolian/eo_generator.c b/src/bin/eolian/eo_generator.c
index 31431abbfc..5255c9fa69 100644
--- a/src/bin/eolian/eo_generator.c
+++ b/src/bin/eolian/eo_generator.c
@@ -807,7 +807,7 @@ eo_source_end_generate(const Eolian_Class *class, Eina_Strbuf *buf)
807 goto end; 807 goto end;
808 } 808 }
809 809
810 rets = eolian_function_full_c_name_get(fnid, impl_env.lower_eo_prefix); 810 rets = eolian_function_full_c_name_get(fnid);
811 811
812 const char *class_str = ""; 812 const char *class_str = "";
813 if (eolian_function_is_class(fnid)) class_str = "CLASS_"; 813 if (eolian_function_is_class(fnid)) class_str = "CLASS_";