q66 pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=fbd9defdd4f7d06d33810500e133a41fb8fa4699

commit fbd9defdd4f7d06d33810500e133a41fb8fa4699
Author: Daniel Kolesa <d.kol...@osg.samsung.com>
Date:   Mon Mar 14 16:58:09 2016 +0000

    eolian generator: simplify typedef gen
---
 src/bin/eolian/types_generator.c | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/src/bin/eolian/types_generator.c b/src/bin/eolian/types_generator.c
index adea819..5995405 100644
--- a/src/bin/eolian/types_generator.c
+++ b/src/bin/eolian/types_generator.c
@@ -49,12 +49,9 @@ _type_generate(const Eolian_Typedecl *tp, Eina_Bool full, 
Eina_Bool use_legacy)
      {
       case EOLIAN_TYPEDECL_ALIAS:
            {
-              char *name = _concat_name(tp);
-              Eina_Stringshare *c_type = eolian_type_c_type_named_get(
-                  eolian_typedecl_base_type_get(tp), name);
-              eina_strbuf_append_printf(buf, "typedef %s", c_type);
-              eina_stringshare_del(c_type);
-              free(name);
+              Eina_Stringshare *tn = eolian_typedecl_c_type_get(tp);
+              eina_strbuf_append(buf, tn);
+              eina_stringshare_del(tn);
               break;
            }
       case EOLIAN_TYPEDECL_STRUCT:

-- 


Reply via email to