diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2020-03-19 09:27:22 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2020-03-19 09:27:22 +0200 |
commit | cbcb0b03501ce346ca3778624dcf908e851e6e2e (patch) | |
tree | ec7cf219ea6772ed5ea03de35eefd5e781d7906a /libbuild2/variable.hxx | |
parent | 14b34a239fa23e1a28519ab87f450c0a440d4f85 (diff) |
Tweak lookup_config() semantics some more
Diffstat (limited to 'libbuild2/variable.hxx')
-rw-r--r-- | libbuild2/variable.hxx | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/libbuild2/variable.hxx b/libbuild2/variable.hxx index 9b9880a..bf0aa00 100644 --- a/libbuild2/variable.hxx +++ b/libbuild2/variable.hxx @@ -1523,7 +1523,11 @@ namespace build2 // then typify the cached value. // pair<value&, ulock> - insert (context&, K, const lookup& stem, size_t version, const variable&); + insert (context&, + K, + const lookup& stem, + size_t base_version, + const variable&); private: struct entry_type @@ -1535,7 +1539,7 @@ namespace build2 // variable_map::value_data value; - size_t version = 0; // Version on which this value is based. + size_t base_version = 0; // Version on which this value is based. // Location of the stem as well as the version on which this cache // value is based. Used to track the location and value of the stem @@ -1548,11 +1552,11 @@ namespace build2 // entry_type () = default; entry_type (variable_map::value_data val, - size_t ver, + size_t bver, const variable_map* svars, size_t sver) : value (move (val)), - version (ver), + base_version (bver), stem_vars (svars), stem_version (sver) {} }; |