eolian_aux: this must be recursive

Summary:
in order to get all callables, this must be recursive, otherwise deeper
callables are forgotten.

Reviewers: q66

Reviewed By: q66

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D9421
This commit is contained in:
Marcel Hollerbach 2019-08-28 10:20:48 +02:00 committed by Daniel Kolesa
parent 4b511671de
commit f951ba5076
1 changed files with 8 additions and 2 deletions

View File

@ -89,11 +89,17 @@ _callables_find(const Eolian_Class *cl, Eina_List **funcs,
const Eolian_Class *pcl = eolian_class_parent_get(cl);
if (pcl)
total += _callables_find_body(pcl, funcs, events, written);
{
total += _callables_find_body(pcl, funcs, events, written);
total += _callables_find(pcl, funcs, events, written);
}
Eina_Iterator *itr = eolian_class_extensions_get(cl);
EINA_ITERATOR_FOREACH(itr, pcl)
total += _callables_find_body(pcl, funcs, events, written);
{
total += _callables_find_body(pcl, funcs, events, written);
total += _callables_find(pcl, funcs, events, written);
}
return total;
}