eolian: use the new decl storage to retrieve REGULAR base types

This commit is contained in:
Daniel Kolesa 2015-05-15 15:16:48 +01:00
parent 8ec7d1cc48
commit 338aa7d10b
1 changed files with 4 additions and 7 deletions

View File

@ -240,13 +240,10 @@ eolian_type_base_type_get(const Eolian_Type *tp)
int kw = eo_lexer_keyword_str_to_id(tp->full_name);
if (!kw || kw < KW_byte || kw > KW_list)
{
Eolian_Type *rtp;
rtp = eina_hash_find(_aliases, tp->full_name);
if (rtp) return rtp;
rtp = eina_hash_find(_structs, tp->full_name);
if (rtp) return rtp;
rtp = eina_hash_find(_enums, tp->full_name);
if (rtp) return rtp;
Eolian_Declaration *decl = eina_hash_find(_decls, tp->full_name);
if (decl && decl->type != EOLIAN_DECL_CLASS
&& decl->type != EOLIAN_DECL_VAR)
return decl->data;
}
return NULL;
}