aboutsummaryrefslogtreecommitdiff
path: root/build/prerequisite.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-02-20 09:38:38 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-02-20 09:38:38 +0200
commit90ae462a44a1478e1c4be1568997b6873f6e688d (patch)
tree26af054dea912de192b243c174da23061c57c444 /build/prerequisite.cxx
parentc23346c4cda9e0c2318c302dc6014d3fef53a6d3 (diff)
Rename 'directory' to 'dir' in target, prerequisite
Diffstat (limited to 'build/prerequisite.cxx')
-rw-r--r--build/prerequisite.cxx12
1 files changed, 5 insertions, 7 deletions
diff --git a/build/prerequisite.cxx b/build/prerequisite.cxx
index 71bde5f..84fb869 100644
--- a/build/prerequisite.cxx
+++ b/build/prerequisite.cxx
@@ -26,7 +26,7 @@ namespace build
// Print scope unless the directory is absolute.
//
- if (!p.directory.absolute ())
+ if (!p.dir.absolute ())
{
string s (diagnostic_string (p.scope.path ()));
@@ -36,9 +36,9 @@ namespace build
// Print directory.
//
- if (!p.directory.empty ())
+ if (!p.dir.empty ())
{
- string s (diagnostic_string (p.directory));
+ string s (diagnostic_string (p.dir));
if (!s.empty ())
os << s << path::traits::directory_separator;
@@ -67,10 +67,8 @@ namespace build
return
(x.type.id < y.type.id) ||
(x.type.id == y.type.id && x.name < y.name) ||
- (x.type.id == y.type.id && x.name == y.name &&
- x.directory < y.directory) ||
- (x.type.id == y.type.id && x.name == y.name &&
- x.directory == y.directory &&
+ (x.type.id == y.type.id && x.name == y.name && x.dir < y.dir) ||
+ (x.type.id == y.type.id && x.name == y.name && x.dir == y.dir &&
x.ext != nullptr && y.ext != nullptr && x.ext < y.ext);
}