summaryrefslogtreecommitdiffstats
path: root/src/graph.h
diff options
context:
space:
mode:
authorScott Graham <scottmg@chromium.org>2014-11-08 06:38:59 (GMT)
committerScott Graham <scottmg@chromium.org>2014-11-08 06:39:07 (GMT)
commitaacfd606f463bc3a7c2cc92d961dbded7979051c (patch)
treedac42a0635f199f39419c219ced98830b967d0e7 /src/graph.h
parente24d31901fc79aa7348be46bef5dea8d0dce6c4b (diff)
downloadNinja-aacfd606f463bc3a7c2cc92d961dbded7979051c.zip
Ninja-aacfd606f463bc3a7c2cc92d961dbded7979051c.tar.gz
Ninja-aacfd606f463bc3a7c2cc92d961dbded7979051c.tar.bz2
wip on adding tests at higher level, some not right
Diffstat (limited to 'src/graph.h')
-rw-r--r--src/graph.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/graph.h b/src/graph.h
index 66e31b5..5c4112b 100644
--- a/src/graph.h
+++ b/src/graph.h
@@ -33,8 +33,9 @@ struct State;
/// Information about a node in the dependency graph: the file, whether
/// it's dirty, mtime, etc.
struct Node {
- explicit Node(const string& path)
+ Node(const string& path, unsigned int slash_bits)
: path_(path),
+ slash_bits_(slash_bits),
mtime_(-1),
dirty_(false),
in_edge_(NULL),
@@ -71,6 +72,7 @@ struct Node {
}
const string& path() const { return path_; }
+ unsigned int slash_bits() const { return slash_bits_; }
TimeStamp mtime() const { return mtime_; }
bool dirty() const { return dirty_; }
@@ -90,6 +92,10 @@ struct Node {
private:
string path_;
+
+ /// XXX See CanonicalizePath.
+ unsigned int slash_bits_;
+
/// Possible values of mtime_:
/// -1: file hasn't been examined
/// 0: we looked, and file doesn't exist