aboutsummaryrefslogtreecommitdiff
path: root/build/parser.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/parser.cxx
parentfa6f9986dd73627643469c238b32dd92607f5214 (diff)
Add meta/operation lists, lift operations in buildspec
Diffstat (limited to 'build/parser.cxx')
-rw-r--r--build/parser.cxx16
1 files changed, 8 insertions, 8 deletions
diff --git a/build/parser.cxx b/build/parser.cxx
index 343f5e1..74b41cc 100644
--- a/build/parser.cxx
+++ b/build/parser.cxx
@@ -1025,7 +1025,7 @@ namespace build
//
if (targets != 0)
{
- if (bs.empty () || !bs.back ().meta_operation.empty ())
+ if (bs.empty () || !bs.back ().name.empty ())
bs.push_back (metaopspec ()); // Empty (default) meta operation.
metaopspec& ms (bs.back ());
@@ -1053,7 +1053,7 @@ namespace build
assert (i != e);
}
- if (ms.empty () || !ms.back ().operation.empty ())
+ if (ms.empty () || !ms.back ().name.empty ())
ms.push_back (opspec ()); // Empty (default) operation.
opspec& os (ms.back ());
@@ -1079,14 +1079,14 @@ namespace build
bool meta (false);
for (const metaopspec& nms: nbs)
{
- if (!nms.meta_operation.empty ())
- fail (l) << "nested meta-operation " << nms.meta_operation;
+ if (!nms.name.empty ())
+ fail (l) << "nested meta-operation " << nms.name;
if (!meta)
{
for (const opspec& nos: nms)
{
- if (!nos.operation.empty ())
+ if (!nos.name.empty ())
{
meta = true;
break;
@@ -1103,7 +1103,7 @@ namespace build
if (meta)
{
- nmo.meta_operation = move (ns.back ().value);
+ nmo.name = move (ns.back ().value);
bs.push_back (move (nmo));
}
else
@@ -1114,10 +1114,10 @@ namespace build
assert (nmo.size () == 1);
opspec& nos (nmo.back ());
- if (bs.empty () || !bs.back ().meta_operation.empty ())
+ if (bs.empty () || !bs.back ().name.empty ())
bs.push_back (metaopspec ()); // Empty (default) meta operation.
- nos.operation = move (ns.back ().value);
+ nos.name = move (ns.back ().value);
bs.back ().push_back (move (nos));
}