summaryrefslogtreecommitdiff
path: root/src/benchmarks
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2016-08-10 15:23:04 +0100
committerTom Hacohen <tom@stosb.com>2016-08-11 17:04:43 +0100
commitc662934be8bcbaba60d1688e77533acbea5d09b9 (patch)
tree8e12b5ffd083024f09b7ec7fa9f979113056fb9d /src/benchmarks
parente64e120a51972c44fb8cae88a78bb4aa34f502c7 (diff)
Change the EFL to follow the new Eo rename.
Diffstat (limited to 'src/benchmarks')
-rw-r--r--src/benchmarks/eo/class_simple.c8
-rw-r--r--src/benchmarks/eo/class_simple.h6
-rw-r--r--src/benchmarks/eo/eo_bench_callbacks.c6
-rw-r--r--src/benchmarks/eo/eo_bench_eo_do.c6
4 files changed, 13 insertions, 13 deletions
diff --git a/src/benchmarks/eo/class_simple.c b/src/benchmarks/eo/class_simple.c
index a448272..e825291 100644
--- a/src/benchmarks/eo/class_simple.c
+++ b/src/benchmarks/eo/class_simple.c
@@ -7,8 +7,8 @@
7 7
8#define MY_CLASS SIMPLE_CLASS 8#define MY_CLASS SIMPLE_CLASS
9 9
10EOAPI const Eo_Event_Description _SIMPLE_FOO = EO_EVENT_DESCRIPTION("foo"); 10EOAPI const Efl_Event_Description _SIMPLE_FOO = EFL_EVENT_DESCRIPTION("foo");
11EOAPI const Eo_Event_Description _SIMPLE_BAR = EO_EVENT_DESCRIPTION("bar"); 11EOAPI const Efl_Event_Description _SIMPLE_BAR = EFL_EVENT_DESCRIPTION("bar");
12 12
13static void 13static void
14_other_call(Eo *obj EINA_UNUSED, void *class_data EINA_UNUSED, Eo *other, int times) 14_other_call(Eo *obj EINA_UNUSED, void *class_data EINA_UNUSED, Eo *other, int times)
@@ -30,12 +30,12 @@ _a_set(Eo *obj EINA_UNUSED, void *class_data, int a)
30 30
31EAPI EO_VOID_FUNC_BODYV(simple_a_set, EO_FUNC_CALL(a), int a); 31EAPI EO_VOID_FUNC_BODYV(simple_a_set, EO_FUNC_CALL(a), int a);
32 32
33static Eo_Op_Description op_desc[] = { 33static Efl_Op_Description op_desc[] = {
34 EO_OP_FUNC(simple_a_set, _a_set), 34 EO_OP_FUNC(simple_a_set, _a_set),
35 EO_OP_FUNC(simple_other_call, _other_call), 35 EO_OP_FUNC(simple_other_call, _other_call),
36}; 36};
37 37
38static const Eo_Class_Description class_desc = { 38static const Efl_Class_Description class_desc = {
39 EO_VERSION, 39 EO_VERSION,
40 "Simple", 40 "Simple",
41 EO_CLASS_TYPE_REGULAR, 41 EO_CLASS_TYPE_REGULAR,
diff --git a/src/benchmarks/eo/class_simple.h b/src/benchmarks/eo/class_simple.h
index ecfbfa7..8445116 100644
--- a/src/benchmarks/eo/class_simple.h
+++ b/src/benchmarks/eo/class_simple.h
@@ -12,10 +12,10 @@ EAPI void simple_a_set(Eo *self, int a);
12EAPI void simple_other_call(Eo*self, Eo *other, int times); 12EAPI void simple_other_call(Eo*self, Eo *other, int times);
13 13
14#define SIMPLE_CLASS simple_class_get() 14#define SIMPLE_CLASS simple_class_get()
15const Eo_Class *simple_class_get(void); 15const Efl_Class *simple_class_get(void);
16 16
17EOAPI extern const Eo_Event_Description _SIMPLE_FOO; 17EOAPI extern const Efl_Event_Description _SIMPLE_FOO;
18EOAPI extern const Eo_Event_Description _SIMPLE_BAR; 18EOAPI extern const Efl_Event_Description _SIMPLE_BAR;
19 19
20#define SIMPLE_FOO (&(_SIMPLE_FOO)) 20#define SIMPLE_FOO (&(_SIMPLE_FOO))
21#define SIMPLE_BAR (&(_SIMPLE_BAR)) 21#define SIMPLE_BAR (&(_SIMPLE_BAR))
diff --git a/src/benchmarks/eo/eo_bench_callbacks.c b/src/benchmarks/eo/eo_bench_callbacks.c
index 69ea71e..ed76228 100644
--- a/src/benchmarks/eo/eo_bench_callbacks.c
+++ b/src/benchmarks/eo/eo_bench_callbacks.c
@@ -20,7 +20,7 @@ bench_eo_callbacks_add(int request)
20 20
21 for (i = 0 ; i < request ; i++) 21 for (i = 0 ; i < request ; i++)
22 { 22 {
23 eo_event_callback_priority_add(obj, SIMPLE_FOO, (short) i, _cb, NULL); 23 efl_event_callback_priority_add(obj, SIMPLE_FOO, (short) i, _cb, NULL);
24 } 24 }
25 25
26 eo_unref(obj); 26 eo_unref(obj);
@@ -56,7 +56,7 @@ bench_eo_callbacks_call(int request)
56 56
57 for (j = 0 ; j < i ; j++) 57 for (j = 0 ; j < i ; j++)
58 { 58 {
59 eo_event_callback_priority_add(obj[i], SIMPLE_FOO, (short) j, _cb, NULL); 59 efl_event_callback_priority_add(obj[i], SIMPLE_FOO, (short) j, _cb, NULL);
60 } 60 }
61 } 61 }
62 62
@@ -65,7 +65,7 @@ bench_eo_callbacks_call(int request)
65 for (j = 0 ; j < (int) (distribution[i] * request) ; j++) 65 for (j = 0 ; j < (int) (distribution[i] * request) ; j++)
66 { 66 {
67 /* Miss finding the callbacks on purpose, so we measure worst case scenario. */ 67 /* Miss finding the callbacks on purpose, so we measure worst case scenario. */
68 eo_event_callback_call(obj[i], SIMPLE_BAR, NULL); 68 efl_event_callback_call(obj[i], SIMPLE_BAR, NULL);
69 } 69 }
70 } 70 }
71 71
diff --git a/src/benchmarks/eo/eo_bench_eo_do.c b/src/benchmarks/eo/eo_bench_eo_do.c
index 9f84535..485f297 100644
--- a/src/benchmarks/eo/eo_bench_eo_do.c
+++ b/src/benchmarks/eo/eo_bench_eo_do.c
@@ -50,7 +50,7 @@ bench_eo_do_two_objs_growing_stack(int request)
50 eo_unref(obj2); 50 eo_unref(obj2);
51} 51}
52 52
53static const Eo_Class *cur_klass; 53static const Efl_Class *cur_klass;
54 54
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)
@@ -58,14 +58,14 @@ _a_set(Eo *obj, void *class_data EINA_UNUSED, int a)
58 simple_a_set(eo_super(obj, cur_klass), a); 58 simple_a_set(eo_super(obj, cur_klass), a);
59} 59}
60 60
61static Eo_Op_Description op_desc[] = { 61static Efl_Op_Description op_desc[] = {
62 EO_OP_FUNC_OVERRIDE(simple_a_set, _a_set), 62 EO_OP_FUNC_OVERRIDE(simple_a_set, _a_set),
63}; 63};
64 64
65static void 65static void
66bench_eo_do_super(int request) 66bench_eo_do_super(int request)
67{ 67{
68 static Eo_Class_Description class_desc = { 68 static Efl_Class_Description class_desc = {
69 EO_VERSION, 69 EO_VERSION,
70 "Simple2", 70 "Simple2",
71 EO_CLASS_TYPE_REGULAR, 71 EO_CLASS_TYPE_REGULAR,