summaryrefslogtreecommitdiffstats
path: root/src/deps_log.h
diff options
context:
space:
mode:
authorEvan Martin <martine@danga.com>2012-12-29 19:55:52 (GMT)
committerEvan Martin <martine@danga.com>2013-04-08 21:45:06 (GMT)
commit5504c0cb054ecfa1c8cd04fa141f5831560d13f4 (patch)
treefa543a6bba11b01fd43b0b05aebaebc59479a3ee /src/deps_log.h
parent00ffada47e1f9649ba76f12ff514f9434a182ef8 (diff)
downloadNinja-5504c0cb054ecfa1c8cd04fa141f5831560d13f4.zip
Ninja-5504c0cb054ecfa1c8cd04fa141f5831560d13f4.tar.gz
Ninja-5504c0cb054ecfa1c8cd04fa141f5831560d13f4.tar.bz2
use DepsLog in loading dependencies
WIP
Diffstat (limited to 'src/deps_log.h')
-rw-r--r--src/deps_log.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/deps_log.h b/src/deps_log.h
index 45d2cea..e11cca3 100644
--- a/src/deps_log.h
+++ b/src/deps_log.h
@@ -67,12 +67,6 @@ struct DepsLog {
void Close();
// Reading (startup-time) interface.
- bool Load(const string& path, State* state, string* err);
-
- private:
- // Write a node name record, assigning it an id.
- bool RecordId(Node* node);
-
struct Deps {
Deps() : mtime(-1), node_count(0), nodes(NULL) {}
~Deps() { delete [] nodes; }
@@ -80,6 +74,12 @@ struct DepsLog {
int node_count;
Node** nodes;
};
+ bool Load(const string& path, State* state, string* err);
+ Deps* GetDeps(Node* node);
+
+ private:
+ // Write a node name record, assigning it an id.
+ bool RecordId(Node* node);
FILE* file_;
vector<Node*> nodes_;