forked from enlightenment/efl
Eolian: Fix class look up.
If a class (e.g Evas_Object) is expected as a base class but is not present in the existing expected file (e.g evas_object.eo), it will not fail. This patch fixes it by checking the existence of the class into the database after the parsing of the file. @fix
This commit is contained in:
parent
9bee17a0aa
commit
f3ce7031e2
|
@ -1414,10 +1414,15 @@ EAPI Eina_Bool eolian_eo_file_parse(const char *filepath)
|
||||||
filepath = eina_hash_find(_filenames, filename);
|
filepath = eina_hash_find(_filenames, filename);
|
||||||
if (!filepath)
|
if (!filepath)
|
||||||
{
|
{
|
||||||
ERR("Unable to find class %s", inherit_name);
|
ERR("Unable to find a file for class %s", inherit_name);
|
||||||
return EINA_FALSE;
|
return EINA_FALSE;
|
||||||
}
|
}
|
||||||
if (!eolian_eo_file_parse(filepath)) return EINA_FALSE;
|
if (!eolian_eo_file_parse(filepath)) return EINA_FALSE;
|
||||||
|
if (!eolian_class_find_by_name(inherit_name))
|
||||||
|
{
|
||||||
|
ERR("Unable to find class %s", inherit_name);
|
||||||
|
return EINA_FALSE;
|
||||||
|
}
|
||||||
free(filename);
|
free(filename);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue