diff options
author | Evan Martin <martine@danga.com> | 2013-01-08 16:43:39 (GMT) |
---|---|---|
committer | Evan Martin <martine@danga.com> | 2013-04-08 22:01:47 (GMT) |
commit | ec92fe3da6e792f9e14a490675aebc132ec37ef6 (patch) | |
tree | 86f2f7f9a259aa803bae6b56b172ab41722e2ca7 /src/deps_log.h | |
parent | e280115c03a296078b26da4b10a643cb1a6bda8a (diff) | |
download | Ninja-ec92fe3da6e792f9e14a490675aebc132ec37ef6.zip Ninja-ec92fe3da6e792f9e14a490675aebc132ec37ef6.tar.gz Ninja-ec92fe3da6e792f9e14a490675aebc132ec37ef6.tar.bz2 |
add recompaction to depslog
Not done automatically yet, just an implementation and a test.
Diffstat (limited to 'src/deps_log.h')
-rw-r--r-- | src/deps_log.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/deps_log.h b/src/deps_log.h index 56f9590..d763a1d 100644 --- a/src/deps_log.h +++ b/src/deps_log.h @@ -65,6 +65,7 @@ struct DepsLog { // Writing (build-time) interface. bool OpenForWrite(const string& path, string* err); bool RecordDeps(Node* node, TimeStamp mtime, const vector<Node*>& nodes); + bool RecordDeps(Node* node, TimeStamp mtime, int node_count, Node** nodes); void Close(); // Reading (startup-time) interface. @@ -78,6 +79,9 @@ struct DepsLog { bool Load(const string& path, State* state, string* err); Deps* GetDeps(Node* node); + /// Rewrite the known log entries, throwing away old data. + bool Recompact(const string& path, string* err); + /// Used for tests. const vector<Node*>& nodes() const { return nodes_; } |