summaryrefslogtreecommitdiffstats
path: root/src/parsers.cc
diff options
context:
space:
mode:
authorEvan Martin <martine@danga.com>2011-01-08 17:44:15 (GMT)
committerEvan Martin <martine@danga.com>2011-01-08 17:44:15 (GMT)
commit0a186ab0cbcd2015d2cf9afd8460c7b60e4bcbdd (patch)
tree65e698b8e86a5c1336bad9234cda326ac23ab330 /src/parsers.cc
parent83056869b618a27c0b3d8ec86e15e9f15777c172 (diff)
downloadNinja-0a186ab0cbcd2015d2cf9afd8460c7b60e4bcbdd.zip
Ninja-0a186ab0cbcd2015d2cf9afd8460c7b60e4bcbdd.tar.gz
Ninja-0a186ab0cbcd2015d2cf9afd8460c7b60e4bcbdd.tar.bz2
split out graph into its own header
Diffstat (limited to 'src/parsers.cc')
-rw-r--r--src/parsers.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/parsers.cc b/src/parsers.cc
index 7eee93c..f57c3b9 100644
--- a/src/parsers.cc
+++ b/src/parsers.cc
@@ -5,6 +5,7 @@
#include <stdio.h>
#include <string.h>
+#include "graph.h"
#include "ninja.h"
string Token::AsString() const {
@@ -460,9 +461,9 @@ bool ManifestParser::ParseEdge(string* err) {
Edge* edge = state_->AddEdge(rule);
edge->env_ = env;
for (vector<string>::iterator i = ins.begin(); i != ins.end(); ++i)
- state_->AddInOut(edge, Edge::IN, *i);
+ state_->AddIn(edge, *i);
for (vector<string>::iterator i = outs.begin(); i != outs.end(); ++i)
- state_->AddInOut(edge, Edge::OUT, *i);
+ state_->AddOut(edge, *i);
edge->order_only_deps_ = order_only;
return true;