From 6b89f484b7e41cab4a528a855b23be33d97dc474 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 14 Oct 2009 00:00:58 +0000 Subject: Remove unnecessary cenv.compile wrapper. Remove special treatment of symbols for compilation. Make CEnv::vals a map rather than (only used for symbols). git-svn-id: http://svn.drobilla.net/resp/tuplr@214 ad02d1e2-f140-0410-9f75-f8b11f17cedd --- src/repl.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/repl.cpp') diff --git a/src/repl.cpp b/src/repl.cpp index fa08238..88885ea 100644 --- a/src/repl.cpp +++ b/src/repl.cpp @@ -97,7 +97,7 @@ eval(CEnv& cenv, const string& name, istream& is, bool execute) // Compile all expressions into it for (list< pair >::const_iterator i = exprs.begin(); i != exprs.end(); ++i) - val = cenv.compile(i->second); + val = i->second->compile(cenv); // Finish compilation cenv.engine()->finishFunction(cenv, f, resultT, val); @@ -135,7 +135,7 @@ repl(CEnv& cenv) try { // Create function for this repl loop f = cenv.engine()->startFunction(cenv, replFnName, resultT, ATuple(cursor)); - cenv.engine()->finishFunction(cenv, f, resultT, cenv.compile(result)); + cenv.engine()->finishFunction(cenv, f, resultT, result->compile(cenv)); callPrintCollect(cenv, f, result, resultT, true); } catch (Error& e) { cenv.out << e.msg << endl; -- cgit v1.2.1