aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/eolian
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@osg.samsung.com>2017-10-25 16:23:57 +0200
committerDaniel Kolesa <d.kolesa@osg.samsung.com>2017-10-25 16:25:41 +0200
commit4f8a9b50f405bad270a6ec37cf8c064ba408f86e (patch)
tree087279688ba04714a3e4e9994ecef2297ed7224e /src/bin/eolian
parenteolian: add part definition (diff)
downloadefl-4f8a9b50f405bad270a6ec37cf8c064ba408f86e.tar.gz
eolian: make inherits_get return a list of classes, not strings
Most of the time you need to retrieve the class from the string anyway, so remove this relic of old Eolian and gain some small performance benefits and extra convenience. Subtly breaks API but everything should be updated.
Diffstat (limited to 'src/bin/eolian')
-rw-r--r--src/bin/eolian/sources.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/bin/eolian/sources.c b/src/bin/eolian/sources.c
index 473342aa8a..2ba900c9bd 100644
--- a/src/bin/eolian/sources.c
+++ b/src/bin/eolian/sources.c
@@ -965,14 +965,13 @@ eo_gen_source_gen(const Eolian_Unit *src,
/* inherits in EFL_DEFINE_CLASS */
{
- const char *iname;
+ const Eolian_Class *icl;
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, icl)
{
- const Eolian_Class *icl = eolian_class_get_by_name(src, iname);
Eina_Stringshare *mname = eolian_class_c_name_get(icl);
eina_strbuf_append_printf(buf, ", %s", mname);
eina_stringshare_del(mname);