summaryrefslogtreecommitdiffstats
path: root/manifest_parser.h
diff options
context:
space:
mode:
authorEvan Martin <martine@danga.com>2010-10-17 05:17:37 (GMT)
committerEvan Martin <martine@danga.com>2010-10-17 05:17:37 (GMT)
commitc205eb3f164ac0ce3566ff23e7d5631cb6ea0e89 (patch)
treec668cec2b6e0f4f150a1c5384d143e4b902902b5 /manifest_parser.h
parent54cbe2b7bd4971c175b938ea0e79a1c1eb6a167a (diff)
downloadNinja-c205eb3f164ac0ce3566ff23e7d5631cb6ea0e89.zip
Ninja-c205eb3f164ac0ce3566ff23e7d5631cb6ea0e89.tar.gz
Ninja-c205eb3f164ac0ce3566ff23e7d5631cb6ea0e89.tar.bz2
basic gmock test
Diffstat (limited to 'manifest_parser.h')
-rw-r--r--manifest_parser.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/manifest_parser.h b/manifest_parser.h
index e2addcc..0b2eff2 100644
--- a/manifest_parser.h
+++ b/manifest_parser.h
@@ -98,15 +98,15 @@ bool ManifestParser::ParseRule(string* err) {
}
bool ManifestParser::ParseEdge(string* err) {
- vector<string> ins, outs;
string rule;
+ vector<string> ins, outs;
SkipWhitespace();
for (;;) {
if (!NextToken())
return Error("expected output file list", err);
if (token_ == ":")
break;
- ins.push_back(token_);
+ outs.push_back(token_);
}
if (!NextToken())
return Error("expected build command name", err);
@@ -114,7 +114,7 @@ bool ManifestParser::ParseEdge(string* err) {
for (;;) {
if (!NextToken())
break;
- outs.push_back(token_);
+ ins.push_back(token_);
}
if (!Newline(err))
return false;