summaryrefslogtreecommitdiff
path: root/src/bin/eolian_cxx
diff options
context:
space:
mode:
authorSavio Sena <savio.sena@acm.org>2014-07-17 01:25:45 -0300
committerFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2014-07-18 18:57:13 -0300
commit67e187bebc1c2d6395e389f7d63a7605bff992a3 (patch)
treeed4929b71eda38a09a7476633dff9bec4f49b252 /src/bin/eolian_cxx
parent027fa407bd68c02eeb2cc52f8fdf60694834ba7f (diff)
eolian-cxx: Fixed the translation of the native type.
Diffstat (limited to 'src/bin/eolian_cxx')
-rw-r--r--src/bin/eolian_cxx/type_lookup.hh6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bin/eolian_cxx/type_lookup.hh b/src/bin/eolian_cxx/type_lookup.hh
index b5c7cfa144..8465ef960d 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
28type_from_eolian(Eolian_Type const& type) 28type_from_eolian(Eolian_Type const& type)
29{ 29{
30 efl::eolian::eolian_type x; 30 efl::eolian::eolian_type x;
31 x.native = normalize_spaces(safe_str(type.name)); 31 x.native = normalize_spaces(safe_str(::eolian_type_c_type_get(&type)));
32 x.is_own = type.is_own; 32 x.is_own = ::eolian_type_is_own(&type);
33 return x; 33 return x;
34} 34}
35 35
@@ -50,7 +50,7 @@ inline efl::eolian::eolian_type_instance
50type_lookup(const Eolian_Type* type, 50type_lookup(const Eolian_Type* type,
51 lookup_table_type const& lut = type_lookup_table) 51 lookup_table_type const& lut = type_lookup_table)
52{ 52{
53 if (type == NULL) return { efl::eolian::void_type }; 53 if (type == NULL) return { efl::eolian::void_type }; // XXX shouldn't
54 size_t n = ::eina_list_count(type->subtypes) + 1; 54 size_t n = ::eina_list_count(type->subtypes) + 1;
55 assert(n > 0); 55 assert(n > 0);
56 efl::eolian::eolian_type_instance v(n); 56 efl::eolian::eolian_type_instance v(n);