diff options
author | David Robillard <d@drobilla.net> | 2011-05-14 07:07:49 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-05-14 07:07:49 +0000 |
commit | 5ca391c314ccef39597a5c412a27772f86e11889 (patch) | |
tree | f8bef0f1192ebbf97f38c6949ad4d7bae12a2e72 /src/resp.hpp | |
parent | 6cbeccf2ca0df91e5b71ccdbfcf412535f0c1179 (diff) | |
download | resp-5ca391c314ccef39597a5c412a27772f86e11889.tar.gz resp-5ca391c314ccef39597a5c412a27772f86e11889.tar.bz2 resp-5ca391c314ccef39597a5c412a27772f86e11889.zip |
Make currentFn private to the backend.
git-svn-id: http://svn.drobilla.net/resp/trunk@421 ad02d1e2-f140-0410-9f75-f8b11f17cedd
Diffstat (limited to 'src/resp.hpp')
-rw-r--r-- | src/resp.hpp | 8 |
1 files changed, 3 insertions, 5 deletions
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<const char*, CVal> CSyms; CSyms cSyms; - CFunc currentFn; ///< Currently compiling function - bool repl; struct FreeVars : public std::vector<const ASymbol*> { |