diff options
author | Evan Martin <martine@danga.com> | 2012-01-05 17:24:30 (GMT) |
---|---|---|
committer | Evan Martin <martine@danga.com> | 2012-01-05 17:24:30 (GMT) |
commit | 499d3e9ea1776e5f59ef722bc82188f46fce3a9d (patch) | |
tree | 5447d244788b4bf50290de14b8d07d020360dd1a /src/build.cc | |
parent | dc3ffcdd4c840a697cdbc71f2c0121908977af9a (diff) | |
download | Ninja-499d3e9ea1776e5f59ef722bc82188f46fce3a9d.zip Ninja-499d3e9ea1776e5f59ef722bc82188f46fce3a9d.tar.gz Ninja-499d3e9ea1776e5f59ef722bc82188f46fce3a9d.tar.bz2 |
convert all time_t to a new TimeStamp type
Diffstat (limited to 'src/build.cc')
-rw-r--r-- | src/build.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/build.cc b/src/build.cc index 4b54561..61439cc 100644 --- a/src/build.cc +++ b/src/build.cc @@ -321,7 +321,7 @@ void Plan::CleanNode(BuildLog* build_log, Node* node) { end = (*ei)->inputs_.end() - (*ei)->order_only_deps_; if (find_if(begin, end, mem_fun(&Node::dirty)) == end) { // Recompute most_recent_input and command. - time_t most_recent_input = 1; + TimeStamp most_recent_input = 1; for (vector<Node*>::iterator ni = begin; ni != end; ++ni) if ((*ni)->mtime() > most_recent_input) most_recent_input = (*ni)->mtime(); @@ -569,7 +569,7 @@ bool Builder::StartEdge(Edge* edge, string* err) { } void Builder::FinishEdge(Edge* edge, bool success, const string& output) { - time_t restat_mtime = 0; + TimeStamp restat_mtime = 0; if (success) { if (edge->rule().restat()) { @@ -578,7 +578,7 @@ void Builder::FinishEdge(Edge* edge, bool success, const string& output) { for (vector<Node*>::iterator i = edge->outputs_.begin(); i != edge->outputs_.end(); ++i) { if ((*i)->exists()) { - time_t new_mtime = disk_interface_->Stat((*i)->path()); + TimeStamp new_mtime = disk_interface_->Stat((*i)->path()); if ((*i)->mtime() == new_mtime) { // The rule command did not change the output. Propagate the clean // state through the build graph. @@ -593,7 +593,7 @@ void Builder::FinishEdge(Edge* edge, bool success, const string& output) { // (existing) non-order-only input or the depfile. for (vector<Node*>::iterator i = edge->inputs_.begin(); i != edge->inputs_.end() - edge->order_only_deps_; ++i) { - time_t input_mtime = disk_interface_->Stat((*i)->path()); + TimeStamp input_mtime = disk_interface_->Stat((*i)->path()); if (input_mtime == 0) { restat_mtime = 0; break; @@ -603,7 +603,7 @@ void Builder::FinishEdge(Edge* edge, bool success, const string& output) { } if (restat_mtime != 0 && !edge->rule().depfile().empty()) { - time_t depfile_mtime = disk_interface_->Stat(edge->EvaluateDepFile()); + TimeStamp depfile_mtime = disk_interface_->Stat(edge->EvaluateDepFile()); if (depfile_mtime == 0) restat_mtime = 0; else if (depfile_mtime > restat_mtime) |