diff options
author | David Robillard <d@drobilla.net> | 2010-12-03 00:52:49 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2010-12-03 00:52:49 +0000 |
commit | a2a6e8e4cefda1bb1cbdae53aab9d00b9a8688ca (patch) | |
tree | 29591923e314b9e11d111c5f402f50f50c2d17e4 /src/c.cpp | |
parent | bbad3fe368b2086ec93f082a9436b1dfbc8f0e84 (diff) | |
download | resp-a2a6e8e4cefda1bb1cbdae53aab9d00b9a8688ca.tar.gz resp-a2a6e8e4cefda1bb1cbdae53aab9d00b9a8688ca.tar.bz2 resp-a2a6e8e4cefda1bb1cbdae53aab9d00b9a8688ca.zip |
Merge ACall and ATuple.
git-svn-id: http://svn.drobilla.net/resp/resp@285 ad02d1e2-f140-0410-9f75-f8b11f17cedd
Diffstat (limited to 'src/c.cpp')
-rw-r--r-- | src/c.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -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; |