diff options
author | Nico Weber <nicolasweber@gmx.de> | 2017-09-04 02:15:13 (GMT) |
---|---|---|
committer | Nico Weber <nicolasweber@gmx.de> | 2017-09-04 02:15:13 (GMT) |
commit | 0c671527322d15016bb9ff5c3cf436f68e6ddbde (patch) | |
tree | cf9625c31e7ad023606c3881c6c759c8572c45c9 /src/build.h | |
parent | 256bf897b85e35bc90294090ad39b5214eb141fb (diff) | |
parent | b98941a605d3cc47966d8407ace6e454d781af9b (diff) | |
download | Ninja-0c671527322d15016bb9ff5c3cf436f68e6ddbde.zip Ninja-0c671527322d15016bb9ff5c3cf436f68e6ddbde.tar.gz Ninja-0c671527322d15016bb9ff5c3cf436f68e6ddbde.tar.bz2 |
v1.8.0v1.8.0
Diffstat (limited to 'src/build.h')
-rw-r--r-- | src/build.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/build.h b/src/build.h index 66ce607..43786f1 100644 --- a/src/build.h +++ b/src/build.h @@ -71,10 +71,11 @@ struct Plan { /// Number of edges with commands to run. int command_edge_count() const { return command_edges_; } + /// Reset state. Clears want and ready sets. + void Reset(); + private: - bool AddSubTarget(Node* node, vector<Node*>* stack, string* err); - bool CheckDependencyCycle(Node* node, const vector<Node*>& stack, - string* err); + bool AddSubTarget(Node* node, Node* dependent, string* err); void NodeFinished(Node* node); /// Submits a ready edge as a candidate for execution. |