summaryrefslogtreecommitdiff
path: root/src/lib/eolian_cxx
diff options
context:
space:
mode:
authorVitor Sousa <vitorsousa@expertisesolutions.com.br>2019-07-08 16:16:07 +0200
committerDaniel Kolesa <d.kolesa@samsung.com>2019-07-08 16:16:07 +0200
commit5ae9e04e4ded623a682d24d1196e714820094922 (patch)
treeb9301eed9fea349cf665bc87e98e3393b2ec4eed /src/lib/eolian_cxx
parent2775534fda1ac3f7d938a84fd81c9b8b5358c6e8 (diff)
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
Diffstat (limited to 'src/lib/eolian_cxx')
-rw-r--r--src/lib/eolian_cxx/grammar/type_impl.hpp10
1 files changed, 10 insertions, 0 deletions
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
329 (complex, regular_type_def{" ::efl::eina::accessor", complex.outer.base_qualifier, {}}); 329 (complex, regular_type_def{" ::efl::eina::accessor", complex.outer.base_qualifier, {}});
330 } 330 }
331 } 331 }
332 , {"slice", nullptr, nullptr, [&]
333 {
334 return regular_type_def{" Eina_Slice", complex.outer.base_qualifier, {}};
335 }
336 }
337 , {"rw_slice", nullptr, nullptr, [&]
338 {
339 return regular_type_def{" Eina_Rw_Slice", complex.outer.base_qualifier, {}};
340 }
341 }
332 }; 342 };
333 343
334 auto default_match = [&] (attributes::complex_type_def const& complex) 344 auto default_match = [&] (attributes::complex_type_def const& complex)