aboutsummaryrefslogtreecommitdiff
path: root/build/search.cxx
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/search.cxx
parent534f9d8db025d58c9ce23f3b81a37e8c34386a27 (diff)
Add separate type to represent directory paths
Diffstat (limited to 'build/search.cxx')
-rw-r--r--build/search.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/build/search.cxx b/build/search.cxx
index bd81822..6434bf7 100644
--- a/build/search.cxx
+++ b/build/search.cxx
@@ -27,7 +27,7 @@ namespace build
// Look for an existing target in this prerequisite's directory scope.
//
- path d;
+ dir_path d;
if (p.dir.absolute ())
d = p.dir; // Already normalized.
else
@@ -56,7 +56,7 @@ namespace build
}
target*
- search_existing_file (prerequisite& p, const paths& sp)
+ search_existing_file (prerequisite& p, const dir_paths& sp)
{
tracer trace ("search_existing_file");
@@ -64,7 +64,7 @@ namespace build
// Go over paths and extension looking for a file.
//
- for (const path& d: sp)
+ for (const dir_path& d: sp)
{
path f (d / p.dir / path (p.name));
f.normalize ();
@@ -116,7 +116,7 @@ namespace build
// We default to the target in this prerequisite's directory scope.
//
- path d;
+ dir_path d;
if (p.dir.absolute ())
d = p.dir; // Already normalized.
else