summaryrefslogtreecommitdiff
path: root/src/bin/eolian/eo_generator.c
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@samsung.com>2014-07-09 20:59:31 +0100
committerDaniel Kolesa <d.kolesa@samsung.com>2014-07-09 20:59:31 +0100
commit580aea04cd928a2ab285c72b0b71dd8033218acb (patch)
tree8156261ed64a189411f2f8cdf90734edb6e4ec14 /src/bin/eolian/eo_generator.c
parent012b586c8b280272e0dca725028c2ec0b1d8be72 (diff)
eolian: refactoring step six
Move Eolian_Function as well, plus fix const correctness of several API funcs.
Diffstat (limited to '')
-rw-r--r--src/bin/eolian/eo_generator.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/bin/eolian/eo_generator.c b/src/bin/eolian/eo_generator.c
index 397af3fca1..c24a85a276 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"};
@@ -238,7 +238,7 @@ eo_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;
241 Eolian_Function fid; 241 Eolian_Function *fid;
242 char *tmpstr = malloc(0x1FF); 242 char *tmpstr = malloc(0x1FF);
243 Eina_Strbuf * str_hdr = eina_strbuf_new(); 243 Eina_Strbuf * str_hdr = eina_strbuf_new();
244 244
@@ -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_
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;
@@ -551,7 +551,7 @@ eo_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;
554 Eolian_Function fn; 554 Eolian_Function *fn;
555 555
556 const char *str_classtype = NULL; 556 const char *str_classtype = NULL;
557 switch(eolian_class_type_get(class)) 557 switch(eolian_class_type_get(class))
@@ -624,7 +624,7 @@ eo_source_end_generate(const Eolian_Class *class, Eina_Strbuf *buf)
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;
629 const char *rets; 629 const char *rets;
630 char *tp = implname; 630 char *tp = implname;
@@ -819,7 +819,7 @@ eo_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;
822 Eolian_Function fn; 822 Eolian_Function *fn;
823 823
824 Eina_Strbuf *str_bodyf = eina_strbuf_new(); 824 Eina_Strbuf *str_bodyf = eina_strbuf_new();
825 825