q66 pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=60d6aeeb2d9203471660bb7253d1cd4de5d9d795
commit 60d6aeeb2d9203471660bb7253d1cd4de5d9d795 Author: Daniel Kolesa <d.kol...@osg.samsung.com> Date: Fri Sep 15 17:52:38 2017 +0200 elua: update for new eolian ownership system --- src/bindings/luajit/eolian.lua | 6 +++--- src/scripts/elua/apps/docgen/doctree.lua | 11 ++++++----- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/src/bindings/luajit/eolian.lua b/src/bindings/luajit/eolian.lua index 34bcb4382c..9c6a2817e9 100644 --- a/src/bindings/luajit/eolian.lua +++ b/src/bindings/luajit/eolian.lua @@ -344,7 +344,7 @@ ffi.cdef [[ const Eolian_Class *eolian_type_class_get(const Eolian_Unit *unit, const Eolian_Type *tp); size_t eolian_type_array_size_get(const Eolian_Type *tp); - Eina_Bool eolian_type_is_own(const Eolian_Type *tp); + Eina_Bool eolian_type_is_owned(const Eolian_Type *tp); Eina_Bool eolian_type_is_const(const Eolian_Type *tp); Eina_Bool eolian_type_is_ptr(const Eolian_Type *tp); @@ -721,8 +721,8 @@ M.Type = ffi.metatype("Eolian_Type", { return tonumber(eolian.eolian_type_array_size_get(self)) end, - is_own = function(self) - return eolian.eolian_type_is_own(self) ~= 0 + is_owned = function(self) + return eolian.eolian_type_is_owned(self) ~= 0 end, is_const = function(self) diff --git a/src/scripts/elua/apps/docgen/doctree.lua b/src/scripts/elua/apps/docgen/doctree.lua index 008e705d1a..5ff9d3421e 100644 --- a/src/scripts/elua/apps/docgen/doctree.lua +++ b/src/scripts/elua/apps/docgen/doctree.lua @@ -648,9 +648,10 @@ local wrap_type_attrs = function(tp, str) if tp:is_const() then str = "const(" .. str .. ")" end - if tp:is_own() then - str = "own(" .. str .. ")" - end + -- TODO: implement new ownership system into docs + --if tp:is_own() then + -- str = "own(" .. str .. ")" + --end local ffunc = tp:free_func_get() if ffunc then str = "free(" .. str .. ", " .. ffunc .. ")" @@ -725,8 +726,8 @@ M.Type = Node:clone { return self.type_array_size_get() end, - is_own = function(self) - return self.type:is_own() + is_owned = function(self) + return self.type:is_owned() end, is_const = function(self) --