aboutsummaryrefslogtreecommitdiff
path: root/build/spec.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-03-09 11:52:27 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-03-09 11:52:27 +0200
commit5807ff000225acf47064eb7f0be965bf1598faaa (patch)
tree0811254ebad92470a54cbeb6ce89646a7f8aa815 /build/spec.cxx
parentfa6f9986dd73627643469c238b32dd92607f5214 (diff)
Add meta/operation lists, lift operations in buildspec
Diffstat (limited to 'build/spec.cxx')
-rw-r--r--build/spec.cxx22
1 files changed, 11 insertions, 11 deletions
diff --git a/build/spec.cxx b/build/spec.cxx
index 31bd4f1..d68154f 100644
--- a/build/spec.cxx
+++ b/build/spec.cxx
@@ -32,26 +32,26 @@ namespace build
}
}
- os << s.target;
+ os << s.name;
return os;
}
ostream&
operator<< (ostream& os, const opspec& s)
{
- bool ho (!s.operation.empty ());
+ bool hn (!s.name.empty ());
bool ht (!s.empty ());
- //os << s.operation;
- os << (ho ? "\"" : "") << s.operation << (ho ? "\"" : "");
+ //os << s.name;
+ os << (hn ? "\"" : "") << s.name << (hn ? "\"" : "");
- if (ho && ht)
+ if (hn && ht)
os << '(';
for (auto b (s.begin ()), i (b); i != s.end (); ++i)
os << (i != b ? " " : "") << *i;
- if (ho && ht)
+ if (hn && ht)
os << ')';
return os;
@@ -60,19 +60,19 @@ namespace build
ostream&
operator<< (ostream& os, const metaopspec& s)
{
- bool hm (!s.meta_operation.empty ());
+ bool hn (!s.name.empty ());
bool ho (!s.empty ());
- //os << s.meta_operation;
- os << (hm ? "\'" : "") << s.meta_operation << (hm ? "\'" : "");
+ //os << s.name;
+ os << (hn ? "\'" : "") << s.name << (hn ? "\'" : "");
- if (hm && ho)
+ if (hn && ho)
os << '(';
for (auto b (s.begin ()), i (b); i != s.end (); ++i)
os << (i != b ? " " : "") << *i;
- if (hm && ho)
+ if (hn && ho)
os << ')';
return os;