q66 pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=5ae9e04e4ded623a682d24d1196e714820094922
commit 5ae9e04e4ded623a682d24d1196e714820094922 Author: Vitor Sousa <[email protected]> Date: Mon Jul 8 16:16:07 2019 +0200 eolian_cxx: update eolian_cxx to recognize slice and rw_slice Summary: Update eolian_cxx to recognize the new keywords `slice` and `rw_slice`, so it can generate the corresponding types `Eina_Slice` and `Eina_Rw_Slice`. Reviewers: lauromoura, felipealmeida, q66 Reviewed By: q66 Subscribers: cedric, bu5hm4n, #reviewers, segfaultxavi, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9237 --- src/lib/eolian_cxx/grammar/type_impl.hpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/lib/eolian_cxx/grammar/type_impl.hpp b/src/lib/eolian_cxx/grammar/type_impl.hpp index ec8f5043f0..ca73a14bd0 100644 --- a/src/lib/eolian_cxx/grammar/type_impl.hpp +++ b/src/lib/eolian_cxx/grammar/type_impl.hpp @@ -329,6 +329,16 @@ struct visitor_generate (complex, regular_type_def{" ::efl::eina::accessor", complex.outer.base_qualifier, {}}); } } + , {"slice", nullptr, nullptr, [&] + { + return regular_type_def{" Eina_Slice", complex.outer.base_qualifier, {}}; + } + } + , {"rw_slice", nullptr, nullptr, [&] + { + return regular_type_def{" Eina_Rw_Slice", complex.outer.base_qualifier, {}}; + } + } }; auto default_match = [&] (attributes::complex_type_def const& complex) --
