summaryrefslogtreecommitdiffstats
path: root/src/graph.h
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.h
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.h')
-rw-r--r--src/graph.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/graph.h b/src/graph.h
index 0514c0c..6ba82b9 100644
--- a/src/graph.h
+++ b/src/graph.h
@@ -20,9 +20,9 @@
using namespace std;
#include "eval_env.h"
+#include "timestamp.h"
struct DiskInterface;
-
struct Edge;
/// Information about a node in the dependency graph: the file, whether
@@ -62,7 +62,7 @@ struct Node {
}
const string& path() const { return path_; }
- time_t mtime() const { return mtime_; }
+ TimeStamp mtime() const { return mtime_; }
bool dirty() const { return dirty_; }
void set_dirty(bool dirty) { dirty_ = dirty; }
@@ -80,7 +80,7 @@ private:
/// -1: file hasn't been examined
/// 0: we looked, and file doesn't exist
/// >0: actual file's mtime
- time_t mtime_;
+ TimeStamp mtime_;
/// Dirty is true when the underlying file is out-of-date.
/// But note that Edge::outputs_ready_ is also used in judging which
@@ -141,7 +141,7 @@ struct Edge {
/// Recompute whether a given single output should be marked dirty.
/// Returns true if so.
- bool RecomputeOutputDirty(BuildLog* build_log, time_t most_recent_input,
+ bool RecomputeOutputDirty(BuildLog* build_log, TimeStamp most_recent_input,
const string& command, Node* output);
/// Return true if all inputs' in-edges are ready.