summaryrefslogtreecommitdiffstats
path: root/src/graph.cc
diff options
context:
space:
mode:
authorEvan Martin <martine@danga.com>2012-01-05 17:24:30 (GMT)
committerEvan Martin <martine@danga.com>2012-01-05 17:24:30 (GMT)
commit499d3e9ea1776e5f59ef722bc82188f46fce3a9d (patch)
tree5447d244788b4bf50290de14b8d07d020360dd1a /src/graph.cc
parentdc3ffcdd4c840a697cdbc71f2c0121908977af9a (diff)
downloadNinja-499d3e9ea1776e5f59ef722bc82188f46fce3a9d.zip
Ninja-499d3e9ea1776e5f59ef722bc82188f46fce3a9d.tar.gz
Ninja-499d3e9ea1776e5f59ef722bc82188f46fce3a9d.tar.bz2
convert all time_t to a new TimeStamp type
Diffstat (limited to 'src/graph.cc')
-rw-r--r--src/graph.cc9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/graph.cc b/src/graph.cc
index ed7097b..eb107f2 100644
--- a/src/graph.cc
+++ b/src/graph.cc
@@ -40,7 +40,7 @@ bool Edge::RecomputeDirty(State* state, DiskInterface* disk_interface,
}
// Visit all inputs; we're dirty if any of the inputs are dirty.
- time_t most_recent_input = 1;
+ TimeStamp 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()) {
@@ -103,11 +103,12 @@ bool Edge::RecomputeDirty(State* state, DiskInterface* disk_interface,
return true;
}
-bool Edge::RecomputeOutputDirty(BuildLog* build_log, time_t most_recent_input,
+bool Edge::RecomputeOutputDirty(BuildLog* build_log,
+ TimeStamp most_recent_input,
const string& command, Node* output) {
if (is_phony()) {
- // Phony edges don't write any output.
- // Outputs are only dirty if there are no inputs and we're missing the output.
+ // Phony edges don't write any output. Outputs are only dirty if
+ // there are no inputs and we're missing the output.
return inputs_.empty() && !output->exists();
}