aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/target.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2020-08-10 13:40:27 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2020-08-10 13:40:27 +0200
commit9d8ba565d1fd454369506a525997fceb5adae349 (patch)
treeda10d155660ff59cfd82ee7bb45d4503e26c198d /libbuild2/target.hxx
parent600da2b97e937b9c96791c291cb5e08cd8526bdd (diff)
Allow holes in group_view array
Diffstat (limited to 'libbuild2/target.hxx')
-rw-r--r--libbuild2/target.hxx8
1 files changed, 8 insertions, 0 deletions
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.