summaryrefslogtreecommitdiffstats
path: root/src/graph.cc
diff options
context:
space:
mode:
authorEvan Martin <martine@danga.com>2011-12-07 17:35:02 (GMT)
committerEvan Martin <martine@danga.com>2011-12-07 17:35:02 (GMT)
commit48526b9c08f22ddcf7e36ca02fde0202312920fa (patch)
treee9c0890d2e5cb27b90ce117945d4babb069bac0e /src/graph.cc
parentd27d21a8c38debfd69c1deaa302cdb500511e0af (diff)
downloadNinja-48526b9c08f22ddcf7e36ca02fde0202312920fa.zip
Ninja-48526b9c08f22ddcf7e36ca02fde0202312920fa.tar.gz
Ninja-48526b9c08f22ddcf7e36ca02fde0202312920fa.tar.bz2
make Node::in_edge_ private
Diffstat (limited to 'src/graph.cc')
-rw-r--r--src/graph.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/graph.cc b/src/graph.cc
index 4de7226..15df856 100644
--- a/src/graph.cc
+++ b/src/graph.cc
@@ -42,7 +42,7 @@ bool Edge::RecomputeDirty(State* state, DiskInterface* disk_interface,
time_t most_recent_input = 1;
for (vector<Node*>::iterator i = inputs_.begin(); i != inputs_.end(); ++i) {
if ((*i)->StatIfNecessary(disk_interface)) {
- if (Edge* edge = (*i)->in_edge_) {
+ if (Edge* edge = (*i)->in_edge()) {
if (!edge->RecomputeDirty(state, disk_interface, err))
return false;
} else {
@@ -52,7 +52,7 @@ bool Edge::RecomputeDirty(State* state, DiskInterface* disk_interface,
}
// If an input is not ready, neither are our outputs.
- if (Edge* edge = (*i)->in_edge_) {
+ if (Edge* edge = (*i)->in_edge()) {
if (!edge->outputs_ready_)
outputs_ready_ = false;
}
@@ -146,7 +146,7 @@ bool Edge::RecomputeOutputDirty(BuildLog* build_log, time_t most_recent_input,
bool Edge::AllInputsReady() const {
for (vector<Node*>::const_iterator i = inputs_.begin();
i != inputs_.end(); ++i) {
- if ((*i)->in_edge_ && !(*i)->in_edge_->outputs_ready())
+ if ((*i)->in_edge() && !(*i)->in_edge()->outputs_ready())
return false;
}
return true;
@@ -239,9 +239,9 @@ bool Edge::LoadDepFile(State* state, DiskInterface* disk_interface,
// If we don't have a edge that generates this input already,
// create one; this makes us not abort if the input is missing,
// but instead will rebuild in that circumstance.
- if (!node->in_edge_) {
+ if (!node->in_edge()) {
Edge* phony_edge = state->AddEdge(&State::kPhonyRule);
- node->in_edge_ = phony_edge;
+ node->set_in_edge(phony_edge);
phony_edge->outputs_.push_back(node);
// RecomputeDirty might not be called for phony_edge if a previous call