summaryrefslogtreecommitdiff
path: root/src/tests/eo/function_overrides
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2016-09-09 10:53:58 +0100
committerTom Hacohen <tom@stosb.com>2016-09-09 11:14:35 +0100
commit7ebf9d879d41169beda06b0195e4a3b3c60818e1 (patch)
treed95a4bf61adb806446376b3c5e84b7deb2dfba3c /src/tests/eo/function_overrides
parent12dbab33f9281e3052b66126c8e9a182372f30b6 (diff)
Eo: Change the way functions are registered to classes
This change lets us remove a field from the structure that leads to around 20KiB more of saving in private dirty pages in elementary. This also looks a bit better and feels a bit cleaner. Breaks API and ABI.
Diffstat (limited to 'src/tests/eo/function_overrides')
-rw-r--r--src/tests/eo/function_overrides/function_overrides_inherit2.c6
-rw-r--r--src/tests/eo/function_overrides/function_overrides_inherit3.c2
-rw-r--r--src/tests/eo/function_overrides/function_overrides_simple.c2
3 files changed, 6 insertions, 4 deletions
diff --git a/src/tests/eo/function_overrides/function_overrides_inherit2.c b/src/tests/eo/function_overrides/function_overrides_inherit2.c
index 52105be17b..71732fe931 100644
--- a/src/tests/eo/function_overrides/function_overrides_inherit2.c
+++ b/src/tests/eo/function_overrides/function_overrides_inherit2.c
@@ -65,11 +65,13 @@ _class_initializer(Efl_Class *klass)
65 EFL_OPS_DEFINE(ops, 65 EFL_OPS_DEFINE(ops,
66 EFL_OBJECT_OP_FUNC(inherit2_print, _print), 66 EFL_OBJECT_OP_FUNC(inherit2_print, _print),
67 EFL_OBJECT_OP_FUNC(inherit2_print2, _print2), 67 EFL_OBJECT_OP_FUNC(inherit2_print2, _print2),
68 EFL_OBJECT_OP_CLASS_FUNC(simple_class_print, _class_print),
69 EFL_OBJECT_OP_FUNC(simple_a_set, _a_set), 68 EFL_OBJECT_OP_FUNC(simple_a_set, _a_set),
70 ); 69 );
70 EFL_OPS_DEFINE(cops,
71 EFL_OBJECT_OP_FUNC(simple_class_print, _class_print),
72 );
71 73
72 return efl_class_functions_set(klass, &ops); 74 return efl_class_functions_set(klass, &ops, &cops);
73} 75}
74 76
75static const Efl_Class_Description class_desc = { 77static const Efl_Class_Description class_desc = {
diff --git a/src/tests/eo/function_overrides/function_overrides_inherit3.c b/src/tests/eo/function_overrides/function_overrides_inherit3.c
index 7e7cd756ee..e3f34076d2 100644
--- a/src/tests/eo/function_overrides/function_overrides_inherit3.c
+++ b/src/tests/eo/function_overrides/function_overrides_inherit3.c
@@ -23,7 +23,7 @@ _class_initializer(Efl_Class *klass)
23 EFL_OBJECT_OP_FUNC(simple_a_set, _a_set), 23 EFL_OBJECT_OP_FUNC(simple_a_set, _a_set),
24 ); 24 );
25 25
26 return efl_class_functions_set(klass, &ops); 26 return efl_class_functions_set(klass, &ops, NULL);
27} 27}
28 28
29static const Efl_Class_Description class_desc = { 29static const Efl_Class_Description class_desc = {
diff --git a/src/tests/eo/function_overrides/function_overrides_simple.c b/src/tests/eo/function_overrides/function_overrides_simple.c
index 9477e7d41a..fbd5681367 100644
--- a/src/tests/eo/function_overrides/function_overrides_simple.c
+++ b/src/tests/eo/function_overrides/function_overrides_simple.c
@@ -66,7 +66,7 @@ _class_initializer(Efl_Class *klass)
66 EFL_OBJECT_OP_FUNC(simple_class_print2, _class_print2), 66 EFL_OBJECT_OP_FUNC(simple_class_print2, _class_print2),
67 ); 67 );
68 68
69 return efl_class_functions_set(klass, &ops); 69 return efl_class_functions_set(klass, &ops, NULL);
70} 70}
71 71
72static const Efl_Class_Description class_desc = { 72static const Efl_Class_Description class_desc = {