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/file.cxx | |
parent | e9563995b01162a8ec4aa24b5342dcdc2eeba154 (diff) |
Enable @-delimited pairs mode everywhere
Diffstat (limited to 'build2/file.cxx')
-rw-r--r-- | build2/file.cxx | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/build2/file.cxx b/build2/file.cxx index fb4f31f..09332f1 100644 --- a/build2/file.cxx +++ b/build2/file.cxx @@ -568,13 +568,11 @@ namespace build2 else { // Pre-scan the value and convert it to the "canonical" form, - // that is, a list of simple=dir pairs. + // that is, a list of name@dir pairs. // for (auto i (v.data_.begin ()); i != v.data_.end (); ++i) { - bool p (i->pair != '\0'); - - if (p) + if (i->pair) { // Project name. // @@ -593,7 +591,7 @@ namespace build2 // Figure out the project name if the user didn't specify one. // - if (!p) + if (!i->pair) { // Pass fallback src_root since this is a subproject that // was specified by the user so it is most likely in our @@ -608,7 +606,7 @@ namespace build2 i = v.data_.emplace (i, move (n)); - i->pair = '='; + i->pair = true; ++i; } } @@ -681,7 +679,7 @@ namespace build2 { for (const name& n: *l) { - if (n.pair != '\0') + if (n.pair) continue; // Skip project names. dir_path out_root (root.out_path () / n.dir); |