aboutsummaryrefslogtreecommitdiff
path: root/build/target.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-03-24 08:53:06 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-03-24 08:53:06 +0200
commita94dcda7f00b10cb22b5f2138b1c29bcfbe7de37 (patch)
treec4ca2c4b2ea08285774569283120233a03aa2cb3 /build/target.cxx
parenteaaa82bd9c1e24a83dcea3857f5fd75d0dfb6de5 (diff)
Make meta-operations control build loop; add disfigure skeleton
Diffstat (limited to 'build/target.cxx')
-rw-r--r--build/target.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/build/target.cxx b/build/target.cxx
index 347a382..1a8fbf7 100644
--- a/build/target.cxx
+++ b/build/target.cxx
@@ -40,7 +40,7 @@ namespace build
ostream&
operator<< (ostream& os, const target& t)
{
- return os << target_set::key {&t.type (), &t.dir, &t.name, &t.ext};
+ return os << target_key {&t.type (), &t.dir, &t.name, &t.ext};
}
static target*
@@ -57,7 +57,7 @@ namespace build
target_set targets;
auto target_set::
- find (const key& k, tracer& trace) const -> iterator
+ find (const target_key& k, tracer& trace) const -> iterator
{
iterator i (map_.find (k));
@@ -96,21 +96,21 @@ namespace build
const std::string* ext,
tracer& trace)
{
- iterator i (find (key {&tt, &dir, &name, &ext}, trace));
+ iterator i (find (target_key {&tt, &dir, &name, &ext}, trace));
if (i != end ())
return pair<target&, bool> (**i, false);
unique_ptr<target> t (tt.factory (move (dir), move (name), ext));
i = map_.emplace (
- make_pair (key {&tt, &t->dir, &t->name, &t->ext},
+ make_pair (target_key {&tt, &t->dir, &t->name, &t->ext},
move (t))).first;
return pair<target&, bool> (**i, true);
}
ostream&
- operator<< (ostream& os, const target_set::key& k)
+ operator<< (ostream& os, const target_key& k)
{
os << k.type->name << '{';