summaryrefslogtreecommitdiff
path: root/src/bin/eolian/eo_generator.c
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@samsung.com>2014-07-09 16:33:07 +0100
committerDaniel Kolesa <d.kolesa@samsung.com>2014-07-09 16:33:19 +0100
commit96eaaaf0746b960c7da7a55fa84602138ef5da64 (patch)
tree8e4980972fcf0b2ab6ff46738b8ff97c9fa665a0 /src/bin/eolian/eo_generator.c
parentca82befa8a30a38c28f1dc8b46e350c8ca2d0446 (diff)
eolian: refactoring step two
Move from all instances of Eolian_Class to Eolian_Class*.
Diffstat (limited to 'src/bin/eolian/eo_generator.c')
-rw-r--r--src/bin/eolian/eo_generator.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/bin/eolian/eo_generator.c b/src/bin/eolian/eo_generator.c
index 9231d08d87..c84b6f5ff4 100644
--- a/src/bin/eolian/eo_generator.c
+++ b/src/bin/eolian/eo_generator.c
@@ -79,7 +79,7 @@ tmpl_eo_retdesc[] =" * @return %s\n";
79#endif 79#endif
80 80
81static Eina_Bool 81static Eina_Bool
82eo_fundef_generate(const Eolian_Class class, Eolian_Function func, Eolian_Function_Type ftype, Eina_Strbuf *functext) 82eo_fundef_generate(const Eolian_Class *class, Eolian_Function func, Eolian_Function_Type ftype, Eina_Strbuf *functext)
83{ 83{
84 _eolian_class_func_vars func_env; 84 _eolian_class_func_vars func_env;
85 const char *str_dir[] = {"in", "out", "inout"}; 85 const char *str_dir[] = {"in", "out", "inout"};
@@ -234,7 +234,7 @@ eo_fundef_generate(const Eolian_Class class, Eolian_Function func, Eolian_Functi
234} 234}
235 235
236Eina_Bool 236Eina_Bool
237eo_header_generate(const Eolian_Class class, Eina_Strbuf *buf) 237eo_header_generate(const Eolian_Class *class, Eina_Strbuf *buf)
238{ 238{
239 const Eolian_Function_Type ftype_order[] = {EOLIAN_CTOR, EOLIAN_PROPERTY, EOLIAN_METHOD}; 239 const Eolian_Function_Type ftype_order[] = {EOLIAN_CTOR, EOLIAN_PROPERTY, EOLIAN_METHOD};
240 const Eina_List *itr; 240 const Eina_List *itr;
@@ -326,7 +326,7 @@ 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, 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 = "";
@@ -488,7 +488,7 @@ eo_bind_func_generate(const Eolian_Class class, Eolian_Function funcid, Eolian_F
488} 488}
489 489
490static Eina_Bool 490static Eina_Bool
491eo_op_desc_generate(const Eolian_Class class, Eolian_Function fid, Eolian_Function_Type ftype, 491eo_op_desc_generate(const Eolian_Class *class, Eolian_Function fid, Eolian_Function_Type ftype,
492 const char *desc, Eina_Strbuf *buf) 492 const char *desc, Eina_Strbuf *buf)
493{ 493{
494 _eolian_class_func_vars func_env; 494 _eolian_class_func_vars func_env;
@@ -510,7 +510,7 @@ eo_op_desc_generate(const Eolian_Class class, Eolian_Function fid, Eolian_Functi
510} 510}
511 511
512static Eina_Bool 512static Eina_Bool
513eo_source_beginning_generate(const Eolian_Class class, Eina_Strbuf *buf) 513eo_source_beginning_generate(const Eolian_Class *class, Eina_Strbuf *buf)
514{ 514{
515 const Eina_List *itr; 515 const Eina_List *itr;
516 516
@@ -547,7 +547,7 @@ eo_source_beginning_generate(const Eolian_Class class, Eina_Strbuf *buf)
547} 547}
548 548
549static Eina_Bool 549static Eina_Bool
550eo_source_end_generate(const Eolian_Class class, Eina_Strbuf *buf) 550eo_source_end_generate(const Eolian_Class *class, Eina_Strbuf *buf)
551{ 551{
552 Eina_Bool ret = EINA_FALSE; 552 Eina_Bool ret = EINA_FALSE;
553 const Eina_List *itr; 553 const Eina_List *itr;
@@ -622,7 +622,7 @@ 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 Eolian_Class *impl_class = NULL;
626 Eolian_Function_Type ftype; 626 Eolian_Function_Type ftype;
627 Eolian_Function fnid = NULL; 627 Eolian_Function fnid = NULL;
628 const char *funcname = NULL; 628 const char *funcname = NULL;
@@ -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 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,
@@ -815,7 +815,7 @@ end:
815} 815}
816 816
817Eina_Bool 817Eina_Bool
818eo_source_generate(const Eolian_Class class, Eina_Strbuf *buf) 818eo_source_generate(const Eolian_Class *class, Eina_Strbuf *buf)
819{ 819{
820 Eina_Bool ret = EINA_FALSE; 820 Eina_Bool ret = EINA_FALSE;
821 const Eina_List *itr; 821 const Eina_List *itr;