summaryrefslogtreecommitdiffstats
path: root/src/build_test.cc
diff options
context:
space:
mode:
authorKonstantin Kharlamov <Hi-Angel@users.noreply.github.com>2019-09-19 21:08:27 (GMT)
committerJan Niklas Hasse <jhasse@bixense.com>2019-09-19 21:08:27 (GMT)
commit8ed4bb844908de8bf2623bd6739da463fe83ef0b (patch)
treed03ca7f34bb2164e92ba86c3cab154482f9883d8 /src/build_test.cc
parent61f90e918b608413daf07ffcb5c5c0930416951a (diff)
downloadNinja-8ed4bb844908de8bf2623bd6739da463fe83ef0b.zip
Ninja-8ed4bb844908de8bf2623bd6739da463fe83ef0b.tar.gz
Ninja-8ed4bb844908de8bf2623bd6739da463fe83ef0b.tar.bz2
Small constifications (#1647)
* build: constify EdgeWanted() * build: constify a bit of CommandRunner * graph: constify functions of struct Edge Signed-off-by: Konstantin Kharlamov <Hi-Angel@yandex.ru>
Diffstat (limited to 'src/build_test.cc')
-rw-r--r--src/build_test.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/build_test.cc b/src/build_test.cc
index b5dbc6c..ddf8574 100644
--- a/src/build_test.cc
+++ b/src/build_test.cc
@@ -470,7 +470,7 @@ struct FakeCommandRunner : public CommandRunner {
max_active_edges_(1), fs_(fs) {}
// CommandRunner impl
- virtual bool CanRunMore();
+ virtual bool CanRunMore() const;
virtual bool StartCommand(Edge* edge);
virtual bool WaitForCommand(Result* result);
virtual vector<Edge*> GetActiveEdges();
@@ -569,7 +569,7 @@ void BuildTest::RebuildTarget(const string& target, const char* manifest,
builder.command_runner_.release();
}
-bool FakeCommandRunner::CanRunMore() {
+bool FakeCommandRunner::CanRunMore() const {
return active_edges_.size() < max_active_edges_;
}
value='bug_3610404'>bug_3610404 Tcl is a high-level, general-purpose, interpreted, dynamic programming language. It was designed with the goal of being very simple but powerful.
summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
| | * | | | | | | | | | | | | Ensure that all TclOO headers get installed. [Bug 2082299]dkf2008-08-295-3/+18
| | | | | | | | | | | | | | |
| | * | | | | | | | | | | | | * README: Bump version number to 8.6a3dgp2008-08-2810-16/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tcl.h: * library/init.tcl: * tools/tcl.wse.in: * unix/configure.in: * unix/tcl.spec: * win/configure.in: * unix/configure: autoconf-2.59 * win/configure:
| | * | | | | | | | | | | | | typodgp2008-08-271-2/+2
| | | | | | | | | | | | | | |
| | * | | | | | | | | | | | | Added cross references to manual pages that discuss specific variables createddkf2008-08-273-4/+60
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | by Tcl.
| | * | | | | | | | | | | | | * generic/tclBasic.c (InfoCoroutine):Miguel Sofer2008-08-263-2/+62
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * tests/unsupported.test: new command that returns the FQN of the currently executing coroutine. Lives as infoCoroutine under unsupported, but is designed to become a subcommand of [info]
| | * | | | | | | | | | | | | * generic/tclBasic.c (NRInterpCoroutine): store the caller'sMiguel Sofer2008-08-252-2/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | eePtr, stop assuming the coroutine is invoked from the same execEnv where it was created.
| | * | | | | | | | | | | | | Split off the ChangeLog entries for 2006-2007 into their own file.dkf2008-08-242-5916/+5926
| | | | | | | | | | | | | | |
| | * | | | | | | | | | | | | NRE-enable non-compiled [foreach]. [Bug 2017632]dkf2008-08-244-144/+257
| | | | | | | | | | | | | | |
| | * | | | | | | | | | | | | * generic/tclBasic.c: Removed unused var; fixed functionMiguel Sofer2008-08-235-9/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tclOOInt.h: pointer declarations (why did gcc start * generic/tclOOMethod.c: complaining all of a sudden?) * generic/tclProc.c:
| | * | | | | | | | | | | | | NRE-enable the ensemble creator (add extra field!)dkf2008-08-234-282/+374
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Arrange for [dict for] to be NRE-enabled when not compiled. [Bug 2017632]
| | * | | | | | | | | | | | | Silence some warnings.dkf2008-08-231-5/+5
| | | | | | | | | | | | | | |
| | * | | | | | | | | | | | | fix ChangeLog entryMiguel Sofer2008-08-231-1/+2
| | | | | | | | | | | | | | |
| | * | | | | | | | | | | | | * generic/tclBasic.c: Set special errocodes: COROUTINE_BUSY,Miguel Sofer2008-08-233-3/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | COROUTINE_CANT_YIELD, COROUTINE_ILLEGAL_YIELD.
| | * | | | | | | | | | | | | * generic/tclBasic.c: Set a special COROUTINE_BUSY errorcodeMiguel Sofer2008-08-232-1/+6
| | | | | | | | | | | | | | |
| | * | | | | | | | | | | | | * changes: Updates for 8.6a2 release.core_8_6_a2dgp2008-08-222-2/+14
| | | | | | | | | | | | | | |
| | * | | | | | | | | | | | | speling ficksdgp2008-08-222-7/+7
| | | | | | | | | | | | | | |
| | * | | | | | | | | | | | | * generic/tcl.h: Drop use of USE_COMPAT85_CONST. That addeddgp2008-08-22