aboutsummaryrefslogtreecommitdiffstats
path: root/src/resp.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/resp.hpp')
-rw-r--r--src/resp.hpp8
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*> {