summaryrefslogtreecommitdiff
path: root/src/tests/eo/function_overrides
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2013-11-11 13:27:36 +0000
committerTom Hacohen <tom@stosb.com>2014-04-10 04:20:20 +0100
commit055dd3c521432fab291c547288a746586966946b (patch)
tree52abc36d2fb001850243b11803d8840f485f240e /src/tests/eo/function_overrides
parent0dc70153e51833fdc66d6580055fcdf0ce8ab4b2 (diff)
eo2: change the order of EO2_OP_FUNC* to put EAPI first.
This looks cleaner and more aligned. Also, it makes more sense as the internal function is bound to the EAPI and not the other way around.
Diffstat (limited to 'src/tests/eo/function_overrides')
-rw-r--r--src/tests/eo/function_overrides/function_overrides_inherit2.c8
-rw-r--r--src/tests/eo/function_overrides/function_overrides_inherit3.c2
-rw-r--r--src/tests/eo/function_overrides/function_overrides_simple.c8
3 files changed, 9 insertions, 9 deletions
diff --git a/src/tests/eo/function_overrides/function_overrides_inherit2.c b/src/tests/eo/function_overrides/function_overrides_inherit2.c
index f228528719..cf8b1cb0db 100644
--- a/src/tests/eo/function_overrides/function_overrides_inherit2.c
+++ b/src/tests/eo/function_overrides/function_overrides_inherit2.c
@@ -60,10 +60,10 @@ EAPI EO2_FUNC_BODY(inherit2_print, Eina_Bool, EINA_FALSE);
60EAPI EO2_FUNC_BODY(inherit2_print2, Eina_Bool, EINA_FALSE); 60EAPI EO2_FUNC_BODY(inherit2_print2, Eina_Bool, EINA_FALSE);
61 61
62static Eo2_Op_Description op_descs[] = { 62static Eo2_Op_Description op_descs[] = {
63 EO2_OP_FUNC(_print, inherit2_print, "Print hey"), 63 EO2_OP_FUNC(inherit2_print, _print, "Print hey"),
64 EO2_OP_FUNC(_print2, inherit2_print2, "Print hey2"), 64 EO2_OP_FUNC(inherit2_print2, _print2, "Print hey2"),
65 EO2_OP_CLASS_FUNC_OVERRIDE(_class_print, simple_class_print), 65 EO2_OP_CLASS_FUNC_OVERRIDE(simple_class_print, _class_print),
66 EO2_OP_FUNC_OVERRIDE(_a_set, simple_a_set), 66 EO2_OP_FUNC_OVERRIDE(simple_a_set, _a_set),
67 EO2_OP_SENTINEL 67 EO2_OP_SENTINEL
68}; 68};
69 69
diff --git a/src/tests/eo/function_overrides/function_overrides_inherit3.c b/src/tests/eo/function_overrides/function_overrides_inherit3.c
index ad4cb67f8c..68214b7b26 100644
--- a/src/tests/eo/function_overrides/function_overrides_inherit3.c
+++ b/src/tests/eo/function_overrides/function_overrides_inherit3.c
@@ -17,7 +17,7 @@ _a_set(Eo *obj, void *class_data EINA_UNUSED, int a)
17} 17}
18 18
19static Eo2_Op_Description op_descs[] = { 19static Eo2_Op_Description op_descs[] = {
20 EO2_OP_FUNC_OVERRIDE(_a_set, simple_a_set), 20 EO2_OP_FUNC_OVERRIDE(simple_a_set, _a_set),
21 EO2_OP_SENTINEL 21 EO2_OP_SENTINEL
22}; 22};
23 23
diff --git a/src/tests/eo/function_overrides/function_overrides_simple.c b/src/tests/eo/function_overrides/function_overrides_simple.c
index 3de5938aad..1e2ef0e6f7 100644
--- a/src/tests/eo/function_overrides/function_overrides_simple.c
+++ b/src/tests/eo/function_overrides/function_overrides_simple.c
@@ -57,10 +57,10 @@ EAPI EO2_FUNC_BODY(simple_class_print, Eina_Bool, EINA_FALSE);
57EAPI EO2_FUNC_BODY(simple_class_print2, Eina_Bool, EINA_FALSE); 57EAPI EO2_FUNC_BODY(simple_class_print2, Eina_Bool, EINA_FALSE);
58 58
59static Eo2_Op_Description op_descs[] = { 59static Eo2_Op_Description op_descs[] = {
60 EO2_OP_FUNC(_a_set, simple_a_set, "Set property A"), 60 EO2_OP_FUNC(simple_a_set, _a_set, "Set property A"),
61 EO2_OP_FUNC(_a_print, simple_a_print, "Print property A"), 61 EO2_OP_FUNC(simple_a_print, _a_print, "Print property A"),
62 EO2_OP_FUNC(_class_print, simple_class_print, "Print class name."), 62 EO2_OP_FUNC(simple_class_print, _class_print, "Print class name."),
63 EO2_OP_FUNC(_class_print2, simple_class_print2, "Print2 class name."), 63 EO2_OP_FUNC(simple_class_print2, _class_print2, "Print2 class name."),
64 EO2_OP_SENTINEL 64 EO2_OP_SENTINEL
65}; 65};
66 66