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/graph.cc | |
parent | f66f2e80eee4a9df52b9f3f0298548c039d1d122 (diff) | |
download | Ninja-d27d21a8c38debfd69c1deaa302cdb500511e0af.zip Ninja-d27d21a8c38debfd69c1deaa302cdb500511e0af.tar.gz Ninja-d27d21a8c38debfd69c1deaa302cdb500511e0af.tar.bz2 |
make Node::dirty_ private
Diffstat (limited to 'src/graph.cc')
-rw-r--r-- | src/graph.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/graph.cc b/src/graph.cc index 0aa155b..4de7226 100644 --- a/src/graph.cc +++ b/src/graph.cc @@ -47,7 +47,7 @@ bool Edge::RecomputeDirty(State* state, DiskInterface* disk_interface, return false; } else { // This input has no in-edge; it is dirty if it is missing. - (*i)->dirty_ = !(*i)->exists(); + (*i)->set_dirty(!(*i)->exists()); } } @@ -60,7 +60,7 @@ bool Edge::RecomputeDirty(State* state, DiskInterface* disk_interface, if (!is_order_only(i - inputs_.begin())) { // If a regular input is dirty (or missing), we're dirty. // Otherwise consider mtime. - if ((*i)->dirty_) { + if ((*i)->dirty()) { dirty = true; } else { if ((*i)->mtime() > most_recent_input) @@ -90,7 +90,7 @@ bool Edge::RecomputeDirty(State* state, DiskInterface* disk_interface, for (vector<Node*>::iterator i = outputs_.begin(); i != outputs_.end(); ++i) { (*i)->StatIfNecessary(disk_interface); if (dirty) - (*i)->dirty_ = true; + (*i)->MarkDirty(); } // If we're dirty, our outputs are not ready. (It's possible to be |