summaryrefslogtreecommitdiffstats
path: root/src/deps_log.h
diff options
context:
space:
mode:
authorElliott Sales de Andrade <quantum.analyst@gmail.com>2016-12-31 08:12:51 (GMT)
committerElliott Sales de Andrade <quantum.analyst@gmail.com>2017-09-16 07:54:10 (GMT)
commit5fcdcf95cb62ab3d593c36ef90df27cef63874a1 (patch)
tree734cfe5426f48e5a0e19d5fa00e7bd2827337ee1 /src/deps_log.h
parent87111bff382655075f2577c591745a335f0103c7 (diff)
downloadNinja-5fcdcf95cb62ab3d593c36ef90df27cef63874a1.zip
Ninja-5fcdcf95cb62ab3d593c36ef90df27cef63874a1.tar.gz
Ninja-5fcdcf95cb62ab3d593c36ef90df27cef63874a1.tar.bz2
Make TimeStamp 64-bit.
This prepares it for higher-resolution timestamps.
Diffstat (limited to 'src/deps_log.h')
-rw-r--r--src/deps_log.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/deps_log.h b/src/deps_log.h
index cec0257..793af07 100644
--- a/src/deps_log.h
+++ b/src/deps_log.h
@@ -57,7 +57,8 @@ struct State;
/// one's complement of the expected index of the record (to detect
/// concurrent writes of multiple ninja processes to the log).
/// dependency records are an array of 4-byte integers
-/// [output path id, output path mtime, input path id, input path id...]
+/// [output path id, output path mtime (8-byte int), input path id,
+/// input path id...]
/// (The mtime is compared against the on-disk output path mtime
/// to verify the stored data is up-to-date.)
/// If two records reference the same output the latter one in the file
@@ -75,10 +76,10 @@ struct DepsLog {
// Reading (startup-time) interface.
struct Deps {
- Deps(int mtime, int node_count)
+ Deps(int64_t mtime, int node_count)
: mtime(mtime), node_count(node_count), nodes(new Node*[node_count]) {}
~Deps() { delete [] nodes; }
- int mtime;
+ TimeStamp mtime;
int node_count;
Node** nodes;
};