summaryrefslogtreecommitdiff
path: root/src/Makefile_Ecore.am
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2019-02-12 19:54:22 +0000
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2019-02-12 19:54:35 +0000
commita57c7f751023fe1d1edeabbf8683574ac7497e5e (patch)
tree8803287a8502e666ee9f1762d850e9c9e978506c /src/Makefile_Ecore.am
parente908142da6e27a8e38f29895770d5d40f8587498 (diff)
Revert command line array object because it's broken by design
Revert "ecore: get rid of commands in efl_task." This reverts commit 616381e9cfed41b83fef039b0e38c09b41fd3d7f. Revert "ecore: here comes a command line object" This reverts commit 48e5684b3c37b337edd7004e68fc0690b58a84e6. 1. this is broken: EOLIAN static const char* _efl_core_command_line_command_get(const Eo *obj EINA_UNUSED, Efl_Core_Command_Line_Data *pd) { return eina_strdup(pd->string_command); } it returns a const char * BUT it duplicates it on return. no. a big fat honking NO. return a char * or don't duplicate. pick. 2. _efl_core_command_line_command_array_set() is broken by design. it accepts an array of strings, but the strings are owned by the caller who creates the array (requiring they free them up themselves after this call) but the array becomes owned by the callee. the code here frees the incoming array but doesn't care about the string content of it. it's leak heaven waiting to happen (or bugs when someone wants to access the array they create to walk it to free the strings they put into it after it is set). i brought this up and it was dismissed. now exactly he issue i brought up is there with mixed ownership and the added complexity as well as transfer of some ownership but not others. go back and think about this so it isn't broken by design.
Diffstat (limited to 'src/Makefile_Ecore.am')
-rw-r--r--src/Makefile_Ecore.am12
1 files changed, 1 insertions, 11 deletions
diff --git a/src/Makefile_Ecore.am b/src/Makefile_Ecore.am
index fd6074d..5f10ea7 100644
--- a/src/Makefile_Ecore.am
+++ b/src/Makefile_Ecore.am
@@ -52,10 +52,6 @@ ecore_eolian_files_public = \
52 lib/ecore/efl_view_model.eo \ 52 lib/ecore/efl_view_model.eo \
53 lib/ecore/efl_core_env.eo \ 53 lib/ecore/efl_core_env.eo \
54 lib/ecore/efl_core_proc_env.eo \ 54 lib/ecore/efl_core_proc_env.eo \
55 lib/ecore/efl_core_command_line.eo
56
57ecore_test_eolian_files = \
58 tests/ecore/efl_app_test_cml.eo
59 55
60ecore_eolian_files = \ 56ecore_eolian_files = \
61 $(ecore_eolian_files_legacy) \ 57 $(ecore_eolian_files_legacy) \
@@ -64,14 +60,10 @@ ecore_eolian_files = \
64ecore_eolian_c = $(ecore_eolian_files:%.eo=%.eo.c) 60ecore_eolian_c = $(ecore_eolian_files:%.eo=%.eo.c)
65ecore_eolian_h = $(ecore_eolian_files:%.eo=%.eo.h) \ 61ecore_eolian_h = $(ecore_eolian_files:%.eo=%.eo.h) \
66 $(ecore_eolian_files_legacy:%.eo=%.eo.legacy.h) 62 $(ecore_eolian_files_legacy:%.eo=%.eo.legacy.h)
67ecore_test_c = $(ecore_test_eolian_files:%.eo=%.eo.c)
68ecore_test_h = $(ecore_test_eolian_files:%.eo=%.eo.h)
69 63
70BUILT_SOURCES += \ 64BUILT_SOURCES += \
71 $(ecore_eolian_c) \ 65 $(ecore_eolian_c) \
72 $(ecore_eolian_h) \ 66 $(ecore_eolian_h)
73 $(ecore_test_c) \
74 $(ecore_test_h)
75 67
76ecoreeolianfilesdir = $(datadir)/eolian/include/ecore-@VMAJ@ 68ecoreeolianfilesdir = $(datadir)/eolian/include/ecore-@VMAJ@
77ecoreeolianfiles_DATA = $(ecore_eolian_files_public) lib/ecore/efl_loop_timer.eo 69ecoreeolianfiles_DATA = $(ecore_eolian_files_public) lib/ecore/efl_loop_timer.eo
@@ -108,7 +100,6 @@ lib/ecore/ecore_job.c \
108lib/ecore/ecore_main.c \ 100lib/ecore/ecore_main.c \
109lib/ecore/ecore_event_message.c \ 101lib/ecore/ecore_event_message.c \
110lib/ecore/ecore_event_message_handler.c \ 102lib/ecore/ecore_event_message_handler.c \
111lib/ecore/efl_core_command_line.c \
112lib/ecore/efl_core_env.c \ 103lib/ecore/efl_core_env.c \
113lib/ecore/efl_core_proc_env.c \ 104lib/ecore/efl_core_proc_env.c \
114lib/ecore/efl_app.c \ 105lib/ecore/efl_app.c \
@@ -348,7 +339,6 @@ tests/ecore/efl_app_test_loop.c \
348tests/ecore/efl_app_test_loop_fd.c \ 339tests/ecore/efl_app_test_loop_fd.c \
349tests/ecore/efl_app_test_loop_timer.c \ 340tests/ecore/efl_app_test_loop_timer.c \
350tests/ecore/efl_app_test_promise.c \ 341tests/ecore/efl_app_test_promise.c \
351tests/ecore/efl_app_test_cml.c \
352tests/ecore/efl_app_test_env.c \ 342tests/ecore/efl_app_test_env.c \
353tests/ecore/efl_app_suite.c \ 343tests/ecore/efl_app_suite.c \
354tests/ecore/efl_app_suite.h 344tests/ecore/efl_app_suite.h