forked from enlightenment/efl
eolian: use the new decl storage to retrieve REGULAR base types
This commit is contained in:
parent
8ec7d1cc48
commit
338aa7d10b
|
@ -240,13 +240,10 @@ eolian_type_base_type_get(const Eolian_Type *tp)
|
||||||
int kw = eo_lexer_keyword_str_to_id(tp->full_name);
|
int kw = eo_lexer_keyword_str_to_id(tp->full_name);
|
||||||
if (!kw || kw < KW_byte || kw > KW_list)
|
if (!kw || kw < KW_byte || kw > KW_list)
|
||||||
{
|
{
|
||||||
Eolian_Type *rtp;
|
Eolian_Declaration *decl = eina_hash_find(_decls, tp->full_name);
|
||||||
rtp = eina_hash_find(_aliases, tp->full_name);
|
if (decl && decl->type != EOLIAN_DECL_CLASS
|
||||||
if (rtp) return rtp;
|
&& decl->type != EOLIAN_DECL_VAR)
|
||||||
rtp = eina_hash_find(_structs, tp->full_name);
|
return decl->data;
|
||||||
if (rtp) return rtp;
|
|
||||||
rtp = eina_hash_find(_enums, tp->full_name);
|
|
||||||
if (rtp) return rtp;
|
|
||||||
}
|
}
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue