summaryrefslogtreecommitdiff
path: root/src/bin/eolian/eo_generator.c
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@samsung.com>2014-07-09 21:31:03 +0100
committerDaniel Kolesa <d.kolesa@samsung.com>2014-07-09 21:31:03 +0100
commita26546bc6b0d21abfcc8efb9c1e67e8e13cfdcdc (patch)
treee6adeb5e78617a0d6453ef38330c990c3779097b /src/bin/eolian/eo_generator.c
parent133607936d3bdd3d82a487b9215852157ced774d (diff)
eolian: the entire API is now const correct
Diffstat (limited to '')
-rw-r--r--src/bin/eolian/eo_generator.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/bin/eolian/eo_generator.c b/src/bin/eolian/eo_generator.c
index c24a85a276..adcfc6dbd5 100644
--- a/src/bin/eolian/eo_generator.c
+++ b/src/bin/eolian/eo_generator.c
@@ -89,7 +89,7 @@ eo_fundef_generate(const Eolian_Class *class, Eolian_Function *func, Eolian_Func
89 char descname[0xFF]; 89 char descname[0xFF];
90 char *tmpstr = malloc(0x1FF); 90 char *tmpstr = malloc(0x1FF);
91 Eina_Bool var_as_ret = EINA_FALSE; 91 Eina_Bool var_as_ret = EINA_FALSE;
92 Eolian_Type *rettypet = NULL; 92 const Eolian_Type *rettypet = NULL;
93 const char *rettype = NULL; 93 const char *rettype = NULL;
94 Eina_Bool ret_const = EINA_FALSE; 94 Eina_Bool ret_const = EINA_FALSE;
95 Eolian_Function_Scope scope = eolian_function_scope_get(func); 95 Eolian_Function_Scope scope = eolian_function_scope_get(func);
@@ -152,7 +152,7 @@ eo_fundef_generate(const Eolian_Class *class, Eolian_Function *func, Eolian_Func
152 152
153 EINA_LIST_FOREACH(eolian_property_keys_list_get(func), l, data) 153 EINA_LIST_FOREACH(eolian_property_keys_list_get(func), l, data)
154 { 154 {
155 Eolian_Type *ptypet; 155 const Eolian_Type *ptypet;
156 const char *pname; 156 const char *pname;
157 const char *ptype; 157 const char *ptype;
158 const char *pdesc = NULL; 158 const char *pdesc = NULL;
@@ -171,7 +171,7 @@ eo_fundef_generate(const Eolian_Class *class, Eolian_Function *func, Eolian_Func
171 { 171 {
172 EINA_LIST_FOREACH(eolian_parameters_list_get(func), l, data) 172 EINA_LIST_FOREACH(eolian_parameters_list_get(func), l, data)
173 { 173 {
174 Eolian_Type *ptypet; 174 const Eolian_Type *ptypet;
175 const char *pname; 175 const char *pname;
176 const char *ptype; 176 const char *ptype;
177 const char *pdesc; 177 const char *pdesc;
@@ -326,12 +326,12 @@ eo_header_generate(const Eolian_Class *class, Eina_Strbuf *buf)
326} 326}
327 327
328static Eina_Bool 328static Eina_Bool
329eo_bind_func_generate(const Eolian_Class *class, Eolian_Function *funcid, Eolian_Function_Type ftype, Eina_Strbuf *buf, _eolian_class_vars *impl_env) 329eo_bind_func_generate(const Eolian_Class *class, const Eolian_Function *funcid, Eolian_Function_Type ftype, Eina_Strbuf *buf, _eolian_class_vars *impl_env)
330{ 330{
331 _eolian_class_func_vars func_env; 331 _eolian_class_func_vars func_env;
332 const char *suffix = ""; 332 const char *suffix = "";
333 Eina_Bool var_as_ret = EINA_FALSE; 333 Eina_Bool var_as_ret = EINA_FALSE;
334 Eolian_Type *rettypet = NULL; 334 const Eolian_Type *rettypet = NULL;
335 const char *rettype = NULL; 335 const char *rettype = NULL;
336 const char *retname = NULL; 336 const char *retname = NULL;
337 Eina_Bool ret_const = EINA_FALSE; 337 Eina_Bool ret_const = EINA_FALSE;
@@ -373,7 +373,7 @@ eo_bind_func_generate(const Eolian_Class *class, Eolian_Function *funcid, Eolian
373 373
374 EINA_LIST_FOREACH(eolian_property_keys_list_get(funcid), l, data) 374 EINA_LIST_FOREACH(eolian_property_keys_list_get(funcid), l, data)
375 { 375 {
376 Eolian_Type *ptypet; 376 const Eolian_Type *ptypet;
377 const char *pname; 377 const char *pname;
378 const char *ptype; 378 const char *ptype;
379 eolian_parameter_information_get((Eolian_Function_Parameter*)data, NULL, &ptypet, &pname, NULL); 379 eolian_parameter_information_get((Eolian_Function_Parameter*)data, NULL, &ptypet, &pname, NULL);
@@ -392,7 +392,7 @@ eo_bind_func_generate(const Eolian_Class *class, Eolian_Function *funcid, Eolian
392 { 392 {
393 EINA_LIST_FOREACH(eolian_parameters_list_get(funcid), l, data) 393 EINA_LIST_FOREACH(eolian_parameters_list_get(funcid), l, data)
394 { 394 {
395 Eolian_Type *ptypet; 395 const Eolian_Type *ptypet;
396 const char *pname; 396 const char *pname;
397 const char *ptype; 397 const char *ptype;
398 Eolian_Parameter_Dir pdir; 398 Eolian_Parameter_Dir pdir;
@@ -622,9 +622,9 @@ eo_source_end_generate(const Eolian_Class *class, Eina_Strbuf *buf)
622 { 622 {
623 _eolian_class_vars impl_env; 623 _eolian_class_vars impl_env;
624 char implname[0xFF]; 624 char implname[0xFF];
625 Eolian_Class *impl_class = NULL; 625 const Eolian_Class *impl_class = NULL;
626 Eolian_Function_Type ftype; 626 Eolian_Function_Type ftype;
627 Eolian_Function *fnid = NULL; 627 const Eolian_Function *fnid = NULL;
628 const char *funcname = NULL; 628 const char *funcname = NULL;
629 const char *rets; 629 const char *rets;
630 char *tp = implname; 630 char *tp = implname;
@@ -758,7 +758,7 @@ eo_source_end_generate(const Eolian_Class *class, Eina_Strbuf *buf)
758 eina_strbuf_reset(tmpbuf); 758 eina_strbuf_reset(tmpbuf);
759 EINA_LIST_FOREACH(eolian_class_inherits_list_get(class), itr, inherit_name) 759 EINA_LIST_FOREACH(eolian_class_inherits_list_get(class), itr, inherit_name)
760 { 760 {
761 Eolian_Class *inherit_class = eolian_class_find_by_name(inherit_name); 761 const Eolian_Class *inherit_class = eolian_class_find_by_name(inherit_name);
762 _eolian_class_vars inherit_env; 762 _eolian_class_vars inherit_env;
763 _class_env_create(inherit_class, NULL, &inherit_env); 763 _class_env_create(inherit_class, NULL, &inherit_env);
764 eina_strbuf_append_printf(tmpbuf, "%s_%s, ", inherit_env.upper_classname, 764 eina_strbuf_append_printf(tmpbuf, "%s_%s, ", inherit_env.upper_classname,