diff options
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; |