From 9d8ba565d1fd454369506a525997fceb5adae349 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 10 Aug 2020 13:40:27 +0200 Subject: Allow holes in group_view array --- libbuild2/target.hxx | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'libbuild2/target.hxx') diff --git a/libbuild2/target.hxx b/libbuild2/target.hxx index 55b8270..17a99d3 100644 --- a/libbuild2/target.hxx +++ b/libbuild2/target.hxx @@ -55,6 +55,14 @@ namespace build2 // A view of target group members. // + // Note that the members array may have "holes" (NULL pointers) and count is + // the number of elements in this array (and not necessarily the number of + // group members). + // + // Note that members being NULL and count being 0 have different meaning: + // the former means group members are not known while the latter means it's + // an empty group. + // struct group_view { const target* const* members; // NULL means not yet known. -- cgit v1.1