aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests
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/tests
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/tests')
-rw-r--r--src/tests/eolian/eolian_parsing.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/tests/eolian/eolian_parsing.c b/src/tests/eolian/eolian_parsing.c
index 86c079817e..c9d07ba607 100644
--- a/src/tests/eolian/eolian_parsing.c
+++ b/src/tests/eolian/eolian_parsing.c
@@ -12,11 +12,12 @@
START_TEST(eolian_namespaces)
{
- const Eolian_Class *class11, *class112, *class21, *class_no, *impl_class;
+ const Eolian_Class *class11, *class112, *class21, *class_no, *impl_class,
+ *iclass;
const Eolian_Function *fid;
Eina_Iterator *iter;
Eolian_Function_Type func_type;
- const char *class_name, *val1, *val2;
+ const char *val1, *val2;
const Eolian_Implement *impl;
const Eolian_Unit *unit;
void *dummy;
@@ -61,12 +62,12 @@ START_TEST(eolian_namespaces)
/* Inherits */
fail_if(!(iter = eolian_class_inherits_get(class11)));
- fail_if(!(eina_iterator_next(iter, (void**)&class_name)));
- fail_if(eolian_class_get_by_name(unit, class_name) != class112);
- fail_if(!(eina_iterator_next(iter, (void**)&class_name)));
- fail_if(eolian_class_get_by_name(unit, class_name) != class21);
- fail_if(!(eina_iterator_next(iter, (void**)&class_name)));
- fail_if(eolian_class_get_by_name(unit, class_name) != class_no);
+ fail_if(!(eina_iterator_next(iter, (void**)&iclass)));
+ fail_if(iclass != class112);
+ fail_if(!(eina_iterator_next(iter, (void**)&iclass)));
+ fail_if(iclass != class21);
+ fail_if(!(eina_iterator_next(iter, (void**)&iclass)));
+ fail_if(iclass != class_no);
fail_if(eina_iterator_next(iter, &dummy));
eina_iterator_free(iter);