aboutsummaryrefslogtreecommitdiff
path: root/build/target
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-04-13 15:50:17 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-04-13 15:50:17 +0200
commitace1743f7f78bb13f99553d6e97ad1beecf1ba99 (patch)
tree595bc9dad989e44f4be9a67e351219f3248dc5f0 /build/target
parent534f9d8db025d58c9ce23f3b81a37e8c34386a27 (diff)
Add separate type to represent directory paths
Diffstat (limited to 'build/target')
-rw-r--r--build/target14
1 files changed, 7 insertions, 7 deletions
diff --git a/build/target b/build/target
index 48accc8..dd62ec8 100644
--- a/build/target
+++ b/build/target
@@ -76,7 +76,7 @@ namespace build
std::type_index id;
const char* name;
const target_type* base;
- target* (*const factory) (path, std::string, const std::string*);
+ target* (*const factory) (dir_path, std::string, const std::string*);
target* (*const search) (prerequisite&);
};
@@ -92,10 +92,10 @@ namespace build
virtual
~target () = default;
- target (path d, std::string n, const std::string* e)
+ target (dir_path d, std::string n, const std::string* e)
: dir (std::move (d)), name (std::move (n)), ext (e) {}
- const path dir; // Absolute and normalized.
+ const dir_path dir; // Absolute and normalized.
const std::string name;
const std::string* ext; // Extension, NULL means unspecified.
@@ -183,7 +183,7 @@ namespace build
struct target_key
{
mutable const target_type* type;
- mutable const path* dir;
+ mutable const dir_path* dir;
mutable const std::string* name;
mutable const std::string* const* ext;
@@ -221,7 +221,7 @@ namespace build
iterator
find (const target_type& type,
- const path& dir,
+ const dir_path& dir,
const std::string& name,
const std::string* ext,
tracer& trace) const
@@ -235,7 +235,7 @@ namespace build
std::pair<target&, bool>
insert (const target_type&,
- path dir,
+ dir_path dir,
std::string name,
const std::string* ext,
tracer&);
@@ -278,7 +278,7 @@ namespace build
template <typename T>
target*
- target_factory (path d, std::string n, const std::string* e)
+ target_factory (dir_path d, std::string n, const std::string* e)
{
return new T (std::move (d), std::move (n), e);
}