From 5ca391c314ccef39597a5c412a27772f86e11889 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 14 May 2011 07:07:49 +0000 Subject: Make currentFn private to the backend. git-svn-id: http://svn.drobilla.net/resp/trunk@421 ad02d1e2-f140-0410-9f75-f8b11f17cedd --- src/resp.hpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/resp.hpp') diff --git a/src/resp.hpp b/src/resp.hpp index 5ee5047..94ea43a 100644 --- a/src/resp.hpp +++ b/src/resp.hpp @@ -673,8 +673,8 @@ struct Engine { const ATuple* type, CFunc f) = 0; - virtual void finishFn(CEnv& cenv, CFunc f, CVal ret, const AST* retT) = 0; - virtual void eraseFn(CEnv& cenv, CFunc f) = 0; + virtual void finishFn(CEnv& cenv, CVal ret, const AST* retT) = 0; + virtual void eraseFn(CEnv& cenv, CFunc f) = 0; virtual CVal compileCall(CEnv& cenv, CFunc f, const ATuple* fT, CVals& args) = 0; virtual CVal compileCast(CEnv& cenv, CVal v, const AST* t) = 0; @@ -702,7 +702,7 @@ Engine* resp_new_c_engine(); /// Compile-Time Environment struct CEnv { CEnv(PEnv& p, TEnv& t, Engine* e, ostream& os=std::cout, ostream& es=std::cerr) - : out(os), err(es), penv(p), tenv(t), currentFn(NULL), repl(false), _engine(e) + : out(os), err(es), penv(p), tenv(t), repl(false), _engine(e) {} ~CEnv() { Object::pool.collect(GC::Roots()); } @@ -783,8 +783,6 @@ struct CEnv { typedef map CSyms; CSyms cSyms; - CFunc currentFn; ///< Currently compiling function - bool repl; struct FreeVars : public std::vector { -- cgit v1.2.1