aboutsummaryrefslogtreecommitdiff
path: root/build/name.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-07-13 08:46:45 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-07-13 08:46:45 +0200
commit4208f2d755f2bd2215051390f6500ccf54f1858f (patch)
tree643336ed7ca628fd06127be73caec2a1b4d9ae4e /build/name.cxx
parentd7ed84309eeda86e793c42864cebd7f8f3b7c66c (diff)
Add support for pair-enabled variables
Diffstat (limited to 'build/name.cxx')
-rw-r--r--build/name.cxx7
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;