summaryrefslogtreecommitdiff
path: root/src/benchmarks
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2016-03-11 12:24:08 +0000
committerTom Hacohen <tom@stosb.com>2016-03-11 12:29:03 +0000
commitf24210caac8d50940ddef858994571be59179c10 (patch)
treecfc8b264e77abbab9827517d1827f9a4fb4dcd50 /src/benchmarks
parent9fdac37187e35f45570c3808011d0283c658652d (diff)
Revert "Automatic migration to the new eo_add syntax."
This reverts commit 4f949a2757b6332306264d7f126b15ba7bfd37d4.
Diffstat (limited to 'src/benchmarks')
-rw-r--r--src/benchmarks/eo/eo_bench_callbacks.c3
-rw-r--r--src/benchmarks/eo/eo_bench_eo_do.c18
2 files changed, 7 insertions, 14 deletions
diff --git a/src/benchmarks/eo/eo_bench_callbacks.c b/src/benchmarks/eo/eo_bench_callbacks.c
index 2114234411..ab779f8417 100644
--- a/src/benchmarks/eo/eo_bench_callbacks.c
+++ b/src/benchmarks/eo/eo_bench_callbacks.c
@@ -17,8 +17,7 @@ static void
17bench_eo_callbacks_add(int request) 17bench_eo_callbacks_add(int request)
18{ 18{
19 int i; 19 int i;
20 Eo *obj = NULL; 20 Eo *obj = eo_add(SIMPLE_CLASS, NULL);
21 eo_add(&obj, SIMPLE_CLASS, NULL);
22 21
23 for (i = 0 ; i < request ; i++) 22 for (i = 0 ; i < request ; i++)
24 { 23 {
diff --git a/src/benchmarks/eo/eo_bench_eo_do.c b/src/benchmarks/eo/eo_bench_eo_do.c
index 9160507c75..9f84535254 100644
--- a/src/benchmarks/eo/eo_bench_eo_do.c
+++ b/src/benchmarks/eo/eo_bench_eo_do.c
@@ -10,8 +10,7 @@ static void
10bench_eo_do_simple(int request) 10bench_eo_do_simple(int request)
11{ 11{
12 int i; 12 int i;
13 Eo *obj = NULL; 13 Eo *obj = eo_add(SIMPLE_CLASS, NULL);
14 eo_add(&obj, SIMPLE_CLASS, NULL);
15 for (i = 0 ; i < request ; i++) 14 for (i = 0 ; i < request ; i++)
16 { 15 {
17 simple_a_set(obj, i); 16 simple_a_set(obj, i);
@@ -24,10 +23,8 @@ static void
24bench_eo_do_two_objs(int request) 23bench_eo_do_two_objs(int request)
25{ 24{
26 int i; 25 int i;
27 Eo *obj = NULL; 26 Eo *obj = eo_add(SIMPLE_CLASS, NULL);
28 eo_add(&obj, SIMPLE_CLASS, NULL); 27 Eo *obj2 = eo_add(SIMPLE_CLASS, NULL);
29 Eo *obj2 = NULL;
30 eo_add(&obj2, SIMPLE_CLASS, NULL);
31 for (i = 0 ; i < request ; i++) 28 for (i = 0 ; i < request ; i++)
32 { 29 {
33 simple_a_set(obj, i); 30 simple_a_set(obj, i);
@@ -42,10 +39,8 @@ static void
42bench_eo_do_two_objs_growing_stack(int request) 39bench_eo_do_two_objs_growing_stack(int request)
43{ 40{
44 int i; 41 int i;
45 Eo *obj = NULL; 42 Eo *obj = eo_add(SIMPLE_CLASS, NULL);
46 eo_add(&obj, SIMPLE_CLASS, NULL); 43 Eo *obj2 = eo_add(SIMPLE_CLASS, NULL);
47 Eo *obj2 = NULL;
48 eo_add(&obj2, SIMPLE_CLASS, NULL);
49 for (i = 0 ; i < request ; i++) 44 for (i = 0 ; i < request ; i++)
50 { 45 {
51 simple_other_call(obj, obj2, 20); 46 simple_other_call(obj, obj2, 20);
@@ -83,8 +78,7 @@ bench_eo_do_super(int request)
83 cur_klass = eo_class_new(&class_desc, SIMPLE_CLASS, NULL); 78 cur_klass = eo_class_new(&class_desc, SIMPLE_CLASS, NULL);
84 79
85 int i; 80 int i;
86 Eo *obj = NULL; 81 Eo *obj = eo_add(cur_klass, NULL);
87 eo_add(&obj, cur_klass, NULL);
88 for (i = 0 ; i < request ; i++) 82 for (i = 0 ; i < request ; i++)
89 { 83 {
90 simple_a_set(obj, i); 84 simple_a_set(obj, i);