forked from enlightenment/efl
eolian gen2: proper generation of inherits in class def
This commit is contained in:
parent
e0e2006a19
commit
cd58a681cf
|
@ -727,13 +727,19 @@ eo_gen_source_gen(const Eolian_Class *cl, Eina_Strbuf *buf)
|
||||||
|
|
||||||
/* inherits in EFL_DEFINE_CLASS */
|
/* inherits in EFL_DEFINE_CLASS */
|
||||||
{
|
{
|
||||||
Eina_Iterator *itr = eolian_class_inherits_get(cl);
|
|
||||||
const char *iname;
|
const char *iname;
|
||||||
|
Eina_Iterator *itr = eolian_class_inherits_get(cl);
|
||||||
|
/* no inherits, NULL parent */
|
||||||
|
if (!itr)
|
||||||
|
eina_strbuf_append(buf, ", NULL");
|
||||||
EINA_ITERATOR_FOREACH(itr, iname)
|
EINA_ITERATOR_FOREACH(itr, iname)
|
||||||
{
|
{
|
||||||
|
char *inameu = NULL;
|
||||||
|
const Eolian_Class *icl = eolian_class_get_by_name(iname);
|
||||||
|
eo_gen_class_names_get(icl, NULL, &inameu, NULL);
|
||||||
eina_strbuf_append(buf, ", ");
|
eina_strbuf_append(buf, ", ");
|
||||||
eina_strbuf_append_printf(buf, "%s_%s", cnameu,
|
eina_strbuf_append_printf(buf, "%s_%s", inameu, _cl_type_str_get(icl));
|
||||||
_cl_type_str_get(eolian_class_get_by_name(iname)));
|
free(inameu);
|
||||||
}
|
}
|
||||||
eina_iterator_free(itr);
|
eina_iterator_free(itr);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue