aboutsummaryrefslogtreecommitdiffstats
path: root/src/repl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/repl.cpp')
-rw-r--r--src/repl.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/repl.cpp b/src/repl.cpp
index 247799b..ae49b00 100644
--- a/src/repl.cpp
+++ b/src/repl.cpp
@@ -132,14 +132,14 @@ eval(CEnv& cenv, Cursor& cursor, istream& is, bool execute)
const AType* fnT = tup<const AType>(cursor, cenv.tenv.Fn, new AType(cursor), type, 0);
// Create function for top-level of program
- f = cenv.engine()->startFunction(cenv, "main", new ATuple(cursor), fnT);
+ f = cenv.engine()->startFn(cenv, "main", new ATuple(cursor), fnT);
// Compile expressions (other than function definitions) into it
for (Code::const_iterator i = exprs.begin(); i != exprs.end(); ++i)
val = resp_compile(cenv, *i);
// Finish compilation
- cenv.engine()->finishFunction(cenv, f, val);
+ cenv.engine()->finishFn(cenv, f, val);
if (cenv.args.find("-S") != cenv.args.end()) {
cenv.engine()->writeModule(cenv, cenv.out);
@@ -179,14 +179,14 @@ repl(CEnv& cenv)
CFunc f = NULL;
try {
// Create function for this repl loop
- f = cenv.engine()->startFunction(cenv, replFnName, new ATuple(cursor), fnT);
- cenv.engine()->finishFunction(cenv, f, resp_compile(cenv, ast));
+ f = cenv.engine()->startFn(cenv, replFnName, new ATuple(cursor), fnT);
+ cenv.engine()->finishFn(cenv, f, resp_compile(cenv, ast));
callPrintCollect(cenv, f, ast, type, true);
if (cenv.args.find("-d") != cenv.args.end())
cenv.engine()->writeModule(cenv, cenv.out);
} catch (Error& e) {
cenv.out << e.msg << endl;
- cenv.engine()->eraseFunction(cenv, f);
+ cenv.engine()->eraseFn(cenv, f);
}
} catch (Error& e) {