summaryrefslogtreecommitdiffstats
path: root/src/build.h
diff options
context:
space:
mode:
authorEvan Martin <martine@danga.com>2011-05-17 17:38:23 (GMT)
committerEvan Martin <martine@danga.com>2011-05-17 17:39:30 (GMT)
commit4d19d997f98dfca40e112fd53216fccbda673ec8 (patch)
tree838ce3ace76817e1808124c3f9aa6f84bc9e2a39 /src/build.h
parent798508875f5cc3c0e74ceccce26173baafac1049 (diff)
downloadNinja-4d19d997f98dfca40e112fd53216fccbda673ec8.zip
Ninja-4d19d997f98dfca40e112fd53216fccbda673ec8.tar.gz
Ninja-4d19d997f98dfca40e112fd53216fccbda673ec8.tar.bz2
simplify CommandRunner, simplifying users too
After much staring at this I think I found the more clear way to express what it's doing.
Diffstat (limited to 'src/build.h')
-rw-r--r--src/build.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/build.h b/src/build.h
index 2129ede..5969441 100644
--- a/src/build.h
+++ b/src/build.h
@@ -72,10 +72,8 @@ struct CommandRunner {
virtual ~CommandRunner() {}
virtual bool CanRunMore() = 0;
virtual bool StartCommand(Edge* edge) = 0;
- /// Wait for commands to make progress; return false if there is no
- /// progress to be made.
- virtual bool WaitForCommands() = 0;
- virtual Edge* NextFinishedCommand(bool* success, string* output) = 0;
+ /// Wait for a command to complete.
+ virtual Edge* WaitForCommand(bool* success, string* output) = 0;
};
/// Options (e.g. verbosity, parallelism) passed to a build.