eolian: reserve __builtin_event_cb

This commit is contained in:
Daniel Kolesa 2015-05-29 11:19:27 +01:00
parent 05ea7c7b55
commit 3efca75615
3 changed files with 4 additions and 2 deletions

View File

@ -239,7 +239,7 @@ eolian_type_base_type_get(const Eolian_Type *tp)
* but first check for builtins
*/
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_true)
{
Eolian_Declaration *decl = eina_hash_find(_decls, tp->full_name);
if (decl && decl->type != EOLIAN_DECL_CLASS

View File

@ -803,7 +803,7 @@ eo_lexer_keyword_str_get(int kw)
Eina_Bool
eo_lexer_is_type_keyword(int kw)
{
return (kw >= KW_byte && kw <= KW_list);
return (kw >= KW_byte && kw <= KW_true);
}
int

View File

@ -52,6 +52,8 @@ enum Tokens
\
KW(accessor), KW(array), KW(iterator), KW(hash), KW(list), \
\
KW(__builtin_event_cb), \
\
KW(true), KW(false), KW(null)
/* "regular" keyword and @ prefixed keyword */