summaryrefslogtreecommitdiff
path: root/src/shell-interface.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/shell-interface.h')
-rw-r--r--src/shell-interface.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/shell-interface.h b/src/shell-interface.h
index 03b190626..de4fe357a 100644
--- a/src/shell-interface.h
+++ b/src/shell-interface.h
@@ -134,12 +134,12 @@ struct ShellExternalInterface : ModuleInstance::ExternalInterface {
}
}
- Literal callImport(Function* import, LiteralList& arguments) override {
+ Literals callImport(Function* import, LiteralList& arguments) override {
if (import->module == SPECTEST && import->base.startsWith(PRINT)) {
for (auto argument : arguments) {
std::cout << argument << " : " << argument.type << '\n';
}
- return Literal();
+ return {};
} else if (import->module == ENV && import->base == EXIT) {
// XXX hack for torture tests
std::cout << "exit()\n";
@@ -149,11 +149,11 @@ struct ShellExternalInterface : ModuleInstance::ExternalInterface {
<< import->name.str;
}
- Literal callTable(Index index,
- Signature sig,
- LiteralList& arguments,
- Type results,
- ModuleInstance& instance) override {
+ Literals callTable(Index index,
+ Signature sig,
+ LiteralList& arguments,
+ Type results,
+ ModuleInstance& instance) override {
if (index >= table.size()) {
trap("callTable overflow");
}