diff options
author | David Robillard <d@drobilla.net> | 2010-12-09 01:02:54 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2010-12-09 01:02:54 +0000 |
commit | e78acdecac3611299db12705c36bbc882efd42fe (patch) | |
tree | 7d1d964d9c2ba7e6d624782ef5bdc50603a16207 /src/repl.cpp | |
parent | 82dc3a0291d993b5a1dd803aae8d166f263d7da2 (diff) | |
download | resp-e78acdecac3611299db12705c36bbc882efd42fe.tar.gz resp-e78acdecac3611299db12705c36bbc882efd42fe.tar.bz2 resp-e78acdecac3611299db12705c36bbc882efd42fe.zip |
Clean up engine code.
git-svn-id: http://svn.drobilla.net/resp/resp@320 ad02d1e2-f140-0410-9f75-f8b11f17cedd
Diffstat (limited to 'src/repl.cpp')
-rw-r--r-- | src/repl.cpp | 10 |
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) { |