From: Vitor Sousa Date: Mon, 8 Jul 2019 14:16:07 +0000 (+0200) Subject: eolian_cxx: update eolian_cxx to recognize slice and rw_slice X-Git-Tag: accepted/tizen/unified/20190711.062823~33 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=389b751e87ae9eeb63586b67115436b1387016f6;p=platform%2Fupstream%2Fefl.git 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 --- diff --git a/src/lib/eolian_cxx/grammar/type_impl.hpp b/src/lib/eolian_cxx/grammar/type_impl.hpp index ec8f504..ca73a14 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)