felipealmeida pushed a commit to branch master.

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

commit 67e187bebc1c2d6395e389f7d63a7605bff992a3
Author: Savio Sena <savio.s...@acm.org>
Date:   Thu Jul 17 01:25:45 2014 -0300

    eolian-cxx: Fixed the translation of the native type.
---
 src/bin/eolian_cxx/type_lookup.hh | 6 +++---
 src/lib/eolian_cxx/eo_types.hh    | 2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/bin/eolian_cxx/type_lookup.hh 
b/src/bin/eolian_cxx/type_lookup.hh
index b5c7cfa..8465ef9 100644
--- a/src/bin/eolian_cxx/type_lookup.hh
+++ b/src/bin/eolian_cxx/type_lookup.hh
@@ -28,8 +28,8 @@ inline efl::eolian::eolian_type
 type_from_eolian(Eolian_Type const& type)
 {
    efl::eolian::eolian_type x;
-   x.native = normalize_spaces(safe_str(type.name));
-   x.is_own = type.is_own;
+   x.native = normalize_spaces(safe_str(::eolian_type_c_type_get(&type)));
+   x.is_own = ::eolian_type_is_own(&type);
    return x;
 }
 
@@ -50,7 +50,7 @@ inline efl::eolian::eolian_type_instance
 type_lookup(const Eolian_Type* type,
             lookup_table_type const& lut = type_lookup_table)
 {
-   if (type == NULL) return { efl::eolian::void_type };
+   if (type == NULL) return { efl::eolian::void_type }; // XXX shouldn't
    size_t n = ::eina_list_count(type->subtypes) + 1;
    assert(n > 0);
    efl::eolian::eolian_type_instance v(n);
diff --git a/src/lib/eolian_cxx/eo_types.hh b/src/lib/eolian_cxx/eo_types.hh
index bd6e7d9..f9b8946 100644
--- a/src/lib/eolian_cxx/eo_types.hh
+++ b/src/lib/eolian_cxx/eo_types.hh
@@ -248,7 +248,7 @@ parameters_find_callback(parameters_container_type const& 
parameters)
      {
         if (type_is_callback((*it).type))
           return it;
-}
+     }
    return parameters.cend();
 }
 

-- 


Reply via email to