summaryrefslogtreecommitdiffstats
path: root/src/deps_log.h
diff options
context:
space:
mode:
authorNico Weber <nicolasweber@gmx.de>2013-04-30 15:44:25 (GMT)
committerNico Weber <nicolasweber@gmx.de>2013-04-30 15:44:25 (GMT)
commit20942b8cf86da96eb4288138fba72c2609cfd54d (patch)
tree1a74d5aac1c679d712a7a444167dcebad004b447 /src/deps_log.h
parent8d03d2cf7e572b65cd242a44081b514338e4fd6b (diff)
downloadNinja-20942b8cf86da96eb4288138fba72c2609cfd54d.zip
Ninja-20942b8cf86da96eb4288138fba72c2609cfd54d.tar.gz
Ninja-20942b8cf86da96eb4288138fba72c2609cfd54d.tar.bz2
Move updating DepsLog's deps_ array into its own function.
No functionality change.
Diffstat (limited to 'src/deps_log.h')
-rw-r--r--src/deps_log.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/deps_log.h b/src/deps_log.h
index 820997e..7270916 100644
--- a/src/deps_log.h
+++ b/src/deps_log.h
@@ -90,6 +90,9 @@ struct DepsLog {
const vector<Deps*>& deps() const { return deps_; }
private:
+ // Updates the in-memory representation. Takes ownership of |deps|.
+ // Returns true if a prior deps record was deleted.
+ bool UpdateDeps(int out_id, Deps* deps);
// Write a node name record, assigning it an id.
bool RecordId(Node* node);