From a2a6e8e4cefda1bb1cbdae53aab9d00b9a8688ca Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 3 Dec 2010 00:52:49 +0000 Subject: Merge ACall and ATuple. git-svn-id: http://svn.drobilla.net/resp/resp@285 ad02d1e2-f140-0410-9f75-f8b11f17cedd --- src/c.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/c.cpp') diff --git a/src/c.cpp b/src/c.cpp index 44aed8d..7df33b0 100644 --- a/src/c.cpp +++ b/src/c.cpp @@ -134,7 +134,7 @@ struct CEngine : public Engine { return f; } - void pushFunctionArgs(CEnv& cenv, const ACall* fn, const AType* type, CFunc f); + void pushFunctionArgs(CEnv& cenv, const ATuple* fn, const AType* type, CFunc f); void finishFunction(CEnv& cenv, CFunc f, CVal ret) { out += "return " + *(Value*)ret + ";\n}\n\n"; @@ -158,9 +158,9 @@ struct CEngine : public Engine { CVal compileDot(CEnv& cenv, CVal tup, int32_t index); CVal compileLiteral(CEnv& cenv, const AST* lit); CVal compileString(CEnv& cenv, const char* str); - CVal compilePrimitive(CEnv& cenv, const ACall* prim); - CVal compileIf(CEnv& cenv, const ACall* aif); - CVal compileMatch(CEnv& cenv, const ACall* match); + CVal compilePrimitive(CEnv& cenv, const ATuple* prim); + CVal compileIf(CEnv& cenv, const ATuple* aif); + CVal compileMatch(CEnv& cenv, const ATuple* match); CVal compileGlobal(CEnv& cenv, const AType* type, const string& sym, CVal val); CVal getGlobal(CEnv& cenv, const string& sym, CVal val); @@ -211,7 +211,7 @@ CEngine::compileString(CEnv& cenv, const char* str) } void -CEngine::pushFunctionArgs(CEnv& cenv, const ACall* fn, const AType* type, CFunc f) +CEngine::pushFunctionArgs(CEnv& cenv, const ATuple* fn, const AType* type, CFunc f) { cenv.push(); @@ -230,7 +230,7 @@ CEngine::pushFunctionArgs(CEnv& cenv, const ACall* fn, const AType* type, CFunc } CVal -CEngine::compileIf(CEnv& cenv, const ACall* aif) +CEngine::compileIf(CEnv& cenv, const ATuple* aif) { Value* varname = new string(cenv.penv.gensymstr("if")); out += (format("%s %s;\n") % *llType(cenv.type(aif)) % *varname).str(); @@ -262,13 +262,13 @@ CEngine::compileIf(CEnv& cenv, const ACall* aif) } CVal -CEngine::compileMatch(CEnv& cenv, const ACall* match) +CEngine::compileMatch(CEnv& cenv, const ATuple* match) { return NULL; } CVal -CEngine::compilePrimitive(CEnv& cenv, const ACall* prim) +CEngine::compilePrimitive(CEnv& cenv, const ATuple* prim) { ATuple::const_iterator i = prim->begin(); ++i; -- cgit v1.2.1