yakov pushed a commit to branch master.

http://git.enlightenment.org/tools/erigo.git/commit/?id=31024300bea5a460e97f57258e636f0b2223b6b2

commit 31024300bea5a460e97f57258e636f0b2223b6b2
Author: Yakov Goldberg <yako...@samsung.com>
Date:   Tue May 19 10:20:51 2015 +0300

    Enum management refactoring - fix 2
---
 src/lib/database.c | 13 ++-----------
 1 file changed, 2 insertions(+), 11 deletions(-)

diff --git a/src/lib/database.c b/src/lib/database.c
index fb74f68..079def7 100644
--- a/src/lib/database.c
+++ b/src/lib/database.c
@@ -413,23 +413,14 @@ _enum_type_register(Eina_Hash *typedef_table, const 
Eolian_Type *type)
           {
              enum_value++;
           }
-        Eina_Stringshare *_c_enum_value = 
eolian_type_enum_field_c_name_get(field);
-        char *c_enum_value = strdup(_c_enum_value);
-        char *p = c_enum_value;
-        while (*p)
-          {
-             if (*p == '.') *p = '_';
-             p++;
-          }
+        Eina_Stringshare *c_enum_value = 
eolian_type_enum_field_c_name_get(field);
 
         Enum_Info *_ei = calloc(1, sizeof(Enum_Info));
         _ei->enum_name = strdup(c_enum_value);
         _ei->enum_val = enum_value;
         c_enums_lst = eina_list_append(c_enums_lst, _ei);
         eina_hash_add(enum_table, c_enum_value, _ei);
-
-        eina_stringshare_del(_c_enum_value);
-        free(c_enum_value);
+        eina_stringshare_del(c_enum_value);
      }
    eina_hash_add(enum_types_table, enum_type_full_name, c_enums_lst);
    eina_iterator_free(fields_itr);

-- 


Reply via email to