summaryrefslogtreecommitdiff
path: root/src/tests/elementary/suite_helpers.c
diff options
context:
space:
mode:
authorMarcel Hollerbach <mail@marcel-hollerbach.de>2019-02-09 18:45:27 +0100
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2019-02-13 16:59:58 +0100
commit37d2d378ec2e2d1f9a3941372ef4d818996291c7 (patch)
treee100879fbdc9ce0d2ce810be81977be97125603b /src/tests/elementary/suite_helpers.c
parent3b2a5a429be16e5b8e5d322b7a077a2c849586b8 (diff)
eolian: drop class function overriding
Until this commit eo did class functions as part of the vtable, which enabled those functions to be overwritten in classes inheriting another class. However in task T7675 we decided that this is not really good for bindings, as most OOP languages do not support this sort of feature. After this commit eolian realizes class function completly outside of the vtable, the c-symbol that is the class funciton is now just directly redirecting to a implementation, without the involvement of the vtable. This also means a change to the syntax created by eo: Calling before: class_function(CLASS_A); Calling after: class_function(); Implementation before: class_function(const Eo *obj, void *pd) { ... } Implementation after: class_function(void) { ... } This fixes T7675. Co-authored-by: lauromauro <lauromoura@expertisesolutions.com.br> Reviewed-by: Daniel Kolesa <daniel@octaforge.org> Differential Revision: https://phab.enlightenment.org/D7901
Diffstat (limited to 'src/tests/elementary/suite_helpers.c')
-rw-r--r--src/tests/elementary/suite_helpers.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/tests/elementary/suite_helpers.c b/src/tests/elementary/suite_helpers.c
index de175fc420..4352b65408 100644
--- a/src/tests/elementary/suite_helpers.c
+++ b/src/tests/elementary/suite_helpers.c
@@ -64,7 +64,7 @@ efl_main(void *data EINA_UNUSED,
64{ 64{
65 Efl_Loop_Arguments *arge = ev->info; 65 Efl_Loop_Arguments *arge = ev->info;
66 66
67 67
68 fail_if(!arge->initialization); 68 fail_if(!arge->initialization);
69 fprintf(stderr, "ARGC %d\n", eina_array_count(arge->argv)); 69 fprintf(stderr, "ARGC %d\n", eina_array_count(arge->argv));
70 fail_if(eina_array_count(arge->argv) != 2); 70 fail_if(eina_array_count(arge->argv) != 2);
@@ -84,10 +84,10 @@ EFL_START_TEST(efl_ui_test_init)
84 _efl_startup_time = ecore_time_unix_get(); 84 _efl_startup_time = ecore_time_unix_get();
85 _EFL_APP_VERSION_SET(); 85 _EFL_APP_VERSION_SET();
86 fail_if(!ecore_init()); 86 fail_if(!ecore_init());
87 efl_event_callback_add(efl_app_main_get(EFL_APP_CLASS), EFL_LOOP_EVENT_ARGUMENTS, efl_main, NULL); 87 efl_event_callback_add(efl_app_main_get(), EFL_LOOP_EVENT_ARGUMENTS, efl_main, NULL);
88 fail_if(!ecore_init_ex(argc, argv)); 88 fail_if(!ecore_init_ex(argc, argv));
89 __EFL_MAIN_CONSTRUCTOR; 89 __EFL_MAIN_CONSTRUCTOR;
90 ret__ = efl_loop_begin(efl_app_main_get(EFL_APP_CLASS)); 90 ret__ = efl_loop_begin(efl_app_main_get());
91 real__ = efl_loop_exit_code_process(ret__); 91 real__ = efl_loop_exit_code_process(ret__);
92 fail_if(real__ != 0); 92 fail_if(real__ != 0);
93 __EFL_MAIN_DESTRUCTOR; 93 __EFL_MAIN_DESTRUCTOR;
@@ -270,7 +270,7 @@ suite_setup(Eina_Bool legacy)
270 else 270 else
271 failed_count = _efl_suite_build_and_run(0, NULL, 271 failed_count = _efl_suite_build_and_run(0, NULL,
272 "Efl_Ui_Init", ui_init, NULL, NULL); 272 "Efl_Ui_Init", ui_init, NULL, NULL);
273 273
274 failed_count += !elm_init(1, (char*[]){"exe"}); 274 failed_count += !elm_init(1, (char*[]){"exe"});
275 if (buffer) 275 if (buffer)
276 { 276 {