diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2015-07-13 08:46:45 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2015-07-13 08:46:45 +0200 |
commit | 4208f2d755f2bd2215051390f6500ccf54f1858f (patch) | |
tree | 643336ed7ca628fd06127be73caec2a1b4d9ae4e /build/name.cxx | |
parent | d7ed84309eeda86e793c42864cebd7f8f3b7c66c (diff) |
Add support for pair-enabled variables
Diffstat (limited to 'build/name.cxx')
-rw-r--r-- | build/name.cxx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/build/name.cxx b/build/name.cxx index 4ead47a..89236ee 100644 --- a/build/name.cxx +++ b/build/name.cxx @@ -47,7 +47,12 @@ namespace build { const name& n (*i); ++i; - os << n << (n.pair ? "=" : (i != e ? " " : "")); + os << n; + + if (n.pair != '\0') + os << n.pair; + else if (i != e) + os << ' '; } return os; |