summaryrefslogtreecommitdiff
path: root/src/benchmarks
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2016-03-01 18:06:28 +0000
committerTom Hacohen <tom@stosb.com>2016-03-03 09:58:08 +0000
commitf21ade6123b9053fca8d1632644c48525a99d6e0 (patch)
treec5eb0445f471d21365a7a5a7b0ec7d279c11b398 /src/benchmarks
parent3faf3f3fc68a839f06b311c35ba020cb25e7c9c4 (diff)
Automatic migration to Eo4.
I just ran my script (email to follow) to migrate all of the EFL automatically. This commit is *only* the automatic conversion, so it can be easily reverted and re-run.
Diffstat (limited to 'src/benchmarks')
-rw-r--r--src/benchmarks/eo/class_simple.c2
-rw-r--r--src/benchmarks/eo/eo_bench_callbacks.c6
-rw-r--r--src/benchmarks/eo/eo_bench_eo_do.c12
3 files changed, 10 insertions, 10 deletions
diff --git a/src/benchmarks/eo/class_simple.c b/src/benchmarks/eo/class_simple.c
index 0a57e285fa..a4482726c3 100644
--- a/src/benchmarks/eo/class_simple.c
+++ b/src/benchmarks/eo/class_simple.c
@@ -15,7 +15,7 @@ _other_call(Eo *obj EINA_UNUSED, void *class_data EINA_UNUSED, Eo *other, int ti
15{ 15{
16 if (times > 0) 16 if (times > 0)
17 { 17 {
18 eo_do(other, simple_other_call(obj, times-1)); 18 simple_other_call(other, obj, times-1);
19 } 19 }
20} 20}
21 21
diff --git a/src/benchmarks/eo/eo_bench_callbacks.c b/src/benchmarks/eo/eo_bench_callbacks.c
index 5f675598f3..ab779f8417 100644
--- a/src/benchmarks/eo/eo_bench_callbacks.c
+++ b/src/benchmarks/eo/eo_bench_callbacks.c
@@ -21,7 +21,7 @@ bench_eo_callbacks_add(int request)
21 21
22 for (i = 0 ; i < request ; i++) 22 for (i = 0 ; i < request ; i++)
23 { 23 {
24 eo_do(obj, eo_event_callback_priority_add(SIMPLE_FOO, (short) i, _cb, NULL)); 24 eo_event_callback_priority_add(obj, SIMPLE_FOO, (short) i, _cb, NULL);
25 } 25 }
26 26
27 eo_unref(obj); 27 eo_unref(obj);
@@ -57,7 +57,7 @@ bench_eo_callbacks_call(int request)
57 57
58 for (j = 0 ; j < i ; j++) 58 for (j = 0 ; j < i ; j++)
59 { 59 {
60 eo_do(obj[i], eo_event_callback_priority_add(SIMPLE_FOO, (short) j, _cb, NULL)); 60 eo_event_callback_priority_add(obj[i], SIMPLE_FOO, (short) j, _cb, NULL);
61 } 61 }
62 } 62 }
63 63
@@ -66,7 +66,7 @@ bench_eo_callbacks_call(int request)
66 for (j = 0 ; j < (int) (distribution[i] * request) ; j++) 66 for (j = 0 ; j < (int) (distribution[i] * request) ; j++)
67 { 67 {
68 /* Miss finding the callbacks on purpose, so we measure worst case scenario. */ 68 /* Miss finding the callbacks on purpose, so we measure worst case scenario. */
69 eo_do(obj[i], eo_event_callback_call(SIMPLE_BAR, NULL)); 69 eo_event_callback_call(obj[i], SIMPLE_BAR, NULL);
70 } 70 }
71 } 71 }
72 72
diff --git a/src/benchmarks/eo/eo_bench_eo_do.c b/src/benchmarks/eo/eo_bench_eo_do.c
index 2bcdc4246e..9f84535254 100644
--- a/src/benchmarks/eo/eo_bench_eo_do.c
+++ b/src/benchmarks/eo/eo_bench_eo_do.c
@@ -13,7 +13,7 @@ bench_eo_do_simple(int request)
13 Eo *obj = eo_add(SIMPLE_CLASS, NULL); 13 Eo *obj = eo_add(SIMPLE_CLASS, NULL);
14 for (i = 0 ; i < request ; i++) 14 for (i = 0 ; i < request ; i++)
15 { 15 {
16 eo_do(obj, simple_a_set(i)); 16 simple_a_set(obj, i);
17 } 17 }
18 18
19 eo_unref(obj); 19 eo_unref(obj);
@@ -27,8 +27,8 @@ bench_eo_do_two_objs(int request)
27 Eo *obj2 = eo_add(SIMPLE_CLASS, NULL); 27 Eo *obj2 = eo_add(SIMPLE_CLASS, NULL);
28 for (i = 0 ; i < request ; i++) 28 for (i = 0 ; i < request ; i++)
29 { 29 {
30 eo_do(obj, simple_a_set(i)); 30 simple_a_set(obj, i);
31 eo_do(obj2, simple_a_set(i)); 31 simple_a_set(obj2, i);
32 } 32 }
33 33
34 eo_unref(obj); 34 eo_unref(obj);
@@ -43,7 +43,7 @@ bench_eo_do_two_objs_growing_stack(int request)
43 Eo *obj2 = eo_add(SIMPLE_CLASS, NULL); 43 Eo *obj2 = eo_add(SIMPLE_CLASS, NULL);
44 for (i = 0 ; i < request ; i++) 44 for (i = 0 ; i < request ; i++)
45 { 45 {
46 eo_do(obj, simple_other_call(obj2, 20)); 46 simple_other_call(obj, obj2, 20);
47 } 47 }
48 48
49 eo_unref(obj); 49 eo_unref(obj);
@@ -55,7 +55,7 @@ static const Eo_Class *cur_klass;
55static void 55static void
56_a_set(Eo *obj, void *class_data EINA_UNUSED, int a) 56_a_set(Eo *obj, void *class_data EINA_UNUSED, int a)
57{ 57{
58 eo_do_super(obj, cur_klass, simple_a_set(a)); 58 simple_a_set(eo_super(obj, cur_klass), a);
59} 59}
60 60
61static Eo_Op_Description op_desc[] = { 61static Eo_Op_Description op_desc[] = {
@@ -81,7 +81,7 @@ bench_eo_do_super(int request)
81 Eo *obj = eo_add(cur_klass, NULL); 81 Eo *obj = eo_add(cur_klass, NULL);
82 for (i = 0 ; i < request ; i++) 82 for (i = 0 ; i < request ; i++)
83 { 83 {
84 eo_do(obj, simple_a_set(i)); 84 simple_a_set(obj, i);
85 } 85 }
86 86
87 eo_unref(obj); 87 eo_unref(obj);