diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2016-03-18 17:54:37 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2016-03-28 16:03:34 +0200 |
commit | cf59a5fa548cfa72ab0b56334afea5c031faf27b (patch) | |
tree | d9193ee747f85f9e2763b98c386057fa6f15ff63 /build2/variable | |
parent | e9563995b01162a8ec4aa24b5342dcdc2eeba154 (diff) |
Enable @-delimited pairs mode everywhere
Diffstat (limited to 'build2/variable')
-rw-r--r-- | build2/variable | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/build2/variable b/build2/variable index 15df6d6..a2490ac 100644 --- a/build2/variable +++ b/build2/variable @@ -50,7 +50,6 @@ namespace build2 string name; const value_type* type; // If NULL, then not (yet) typed. variable_visibility visibility; - char pairs; // Pair symbold or '\0' if not used. }; inline bool @@ -632,24 +631,23 @@ namespace build2 { template <typename T> const variable& - find (string name, char p = '\0') + find (string name) { - return find (name, nullptr, &value_traits<T>::value_type, p); + return find (name, nullptr, &value_traits<T>::value_type); } const variable& - find (string name, const build2::value_type* t = nullptr, char p = '\0') + find (string name, const build2::value_type* t = nullptr) { - return find (name, nullptr, t, p); + return find (name, nullptr, t); } const variable& find (string name, variable_visibility v, - const build2::value_type* t = nullptr, - char p = '\0') + const build2::value_type* t = nullptr) { - return find (name, &v, t, p); + return find (name, &v, t); } using variable_pool_base::clear; @@ -658,16 +656,14 @@ namespace build2 const variable& find (string name, const variable_visibility* vv, - const build2::value_type* t, - char p) + const build2::value_type* t) { auto r ( insert ( variable { move (name), t, - vv != nullptr ? *vv : variable_visibility::normal, - p})); + vv != nullptr ? *vv : variable_visibility::normal})); const variable& v (*r.first); // Update type? |