diff options
author | Nico Weber <nicolasweber@gmx.de> | 2017-01-24 19:03:50 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-24 19:03:50 (GMT) |
commit | 2993752dd617ada5218836dd6545fb06690e238b (patch) | |
tree | 574e0fcacc7f65345cd9a99c471a06c411e94db0 /src/graph.h | |
parent | 9e71431e6f8323be8ced8997409cfe7a389c6583 (diff) | |
parent | 1cc730ddc27df52d757be1c2e7aa96193f8ca9df (diff) | |
download | Ninja-2993752dd617ada5218836dd6545fb06690e238b.zip Ninja-2993752dd617ada5218836dd6545fb06690e238b.tar.gz Ninja-2993752dd617ada5218836dd6545fb06690e238b.tar.bz2 |
Merge pull request #1181 from DanielWeber/issue-1161
Allow more path components
Diffstat (limited to 'src/graph.h')
-rw-r--r-- | src/graph.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/graph.h b/src/graph.h index add8d3d..ec24293 100644 --- a/src/graph.h +++ b/src/graph.h @@ -21,6 +21,7 @@ using namespace std; #include "eval_env.h" #include "timestamp.h" +#include "util.h" struct BuildLog; struct DiskInterface; @@ -33,7 +34,7 @@ struct State; /// Information about a node in the dependency graph: the file, whether /// it's dirty, mtime, etc. struct Node { - Node(const string& path, unsigned int slash_bits) + Node(const string& path, uint64_t slash_bits) : path_(path), slash_bits_(slash_bits), mtime_(-1), @@ -76,8 +77,8 @@ struct Node { return PathDecanonicalized(path_, slash_bits_); } static string PathDecanonicalized(const string& path, - unsigned int slash_bits); - unsigned int slash_bits() const { return slash_bits_; } + uint64_t slash_bits); + uint64_t slash_bits() const { return slash_bits_; } TimeStamp mtime() const { return mtime_; } @@ -101,7 +102,7 @@ private: /// Set bits starting from lowest for backslashes that were normalized to /// forward slashes by CanonicalizePath. See |PathDecanonicalized|. - unsigned int slash_bits_; + uint64_t slash_bits_; /// Possible values of mtime_: /// -1: file hasn't been examined |