eolian: enable cyclic imports of eo files

This commit is contained in:
Daniel Kolesa 2017-11-08 16:46:14 +01:00
parent 5c2611d93a
commit 70ee11af84
1 changed files with 1 additions and 15 deletions

View File

@ -2176,21 +2176,7 @@ parse_unit(Eo_Lexer *ls, Eina_Bool eot)
}
else is_eo = EINA_TRUE;
}
if (eina_hash_find(_parsingeos, found))
{
pop_strbuf(ls);
snprintf(errbuf, sizeof(errbuf),
"cyclic import '%s'", ls->t.value.s);
eo_lexer_syntax_error(ls, errbuf);
}
pop_strbuf(ls);
if (!eo_parser_database_fill(found, !is_eo, NULL))
{
pop_strbuf(ls);
snprintf(errbuf, sizeof(errbuf),
"error while parsing import '%s'", ls->t.value.s);
eo_lexer_syntax_error(ls, errbuf);
}
eina_hash_set(_defereos, eina_strbuf_string_get(buf), found);
pop_strbuf(ls);
eo_lexer_get(ls);
check_next(ls, ';');