efl/src/bindings/mono/efl_mono
Carsten Haitzler a57c7f7510 Revert command line array object because it's broken by design
Revert "ecore: get rid of commands in efl_task."
  This reverts commit 616381e9cf.
Revert "ecore: here comes a command line object"
  This reverts commit 48e5684b3c.

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.
2019-02-12 19:54:35 +00:00
..
.gitignore
efl_all.cs csharp: Change to new class API. 2018-11-29 21:29:48 -02:00
efl_csharp_application.cs Revert command line array object because it's broken by design 2019-02-12 19:54:35 +00:00
efl_libs.cs.in eolian-mono: Add documentation generation support 2017-12-20 19:57:17 -02:00
efl_libs.csv.in
map_generate.sh meson: time for the c-sharp build 2018-10-24 12:05:58 +02:00
meson.build csharp: add a interface to start apps 2019-01-16 12:49:47 +01:00