diff options
author | Evan Martin <martine@danga.com> | 2011-12-07 17:27:01 (GMT) |
---|---|---|
committer | Evan Martin <martine@danga.com> | 2011-12-07 17:27:01 (GMT) |
commit | d27d21a8c38debfd69c1deaa302cdb500511e0af (patch) | |
tree | 43e35e5b2ed2765db42af7944e48c1cf2593e106 /src/build.cc | |
parent | f66f2e80eee4a9df52b9f3f0298548c039d1d122 (diff) | |
download | Ninja-d27d21a8c38debfd69c1deaa302cdb500511e0af.zip Ninja-d27d21a8c38debfd69c1deaa302cdb500511e0af.tar.gz Ninja-d27d21a8c38debfd69c1deaa302cdb500511e0af.tar.bz2 |
make Node::dirty_ private
Diffstat (limited to 'src/build.cc')
-rw-r--r-- | src/build.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/build.cc b/src/build.cc index 6da821f..e109535 100644 --- a/src/build.cc +++ b/src/build.cc @@ -192,7 +192,7 @@ bool Plan::AddTarget(Node* node, string* err) { bool Plan::AddSubTarget(Node* node, vector<Node*>* stack, string* err) { Edge* edge = node->in_edge_; if (!edge) { // Leaf node. - if (node->dirty_) { + if (node->dirty()) { string referenced; if (!stack->empty()) referenced = ", needed by '" + stack->back()->path() + "',"; @@ -307,7 +307,7 @@ void Plan::NodeFinished(Node* node) { } void Plan::CleanNode(BuildLog* build_log, Node* node) { - node->dirty_ = false; + node->set_dirty(false); for (vector<Edge*>::iterator ei = node->out_edges_.begin(); ei != node->out_edges_.end(); ++ei) { @@ -332,12 +332,12 @@ void Plan::CleanNode(BuildLog* build_log, Node* node) { bool all_outputs_clean = true; for (vector<Node*>::iterator ni = (*ei)->outputs_.begin(); ni != (*ei)->outputs_.end(); ++ni) { - if (!(*ni)->dirty_) + if (!(*ni)->dirty()) continue; if ((*ei)->RecomputeOutputDirty(build_log, most_recent_input, command, *ni)) { - (*ni)->dirty_ = true; + (*ni)->MarkDirty(); all_outputs_clean = false; } else { CleanNode(build_log, *ni); |