From 5807ff000225acf47064eb7f0be965bf1598faaa Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 9 Mar 2015 11:52:27 +0200 Subject: Add meta/operation lists, lift operations in buildspec --- build/spec.cxx | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'build/spec.cxx') 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; -- cgit v1.1