aboutsummaryrefslogtreecommitdiffstats
path: root/src/c.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2010-12-10 01:12:16 +0000
committerDavid Robillard <d@drobilla.net>2010-12-10 01:12:16 +0000
commitedd04d465f41613d85b505844542c366b6117f86 (patch)
treef53feba5d71a492e2e8efc993823bdc7d649a026 /src/c.cpp
parent46af3ed1f9c552928ef61b4e609157768bcf4807 (diff)
downloadresp-edd04d465f41613d85b505844542c366b6117f86.tar.gz
resp-edd04d465f41613d85b505844542c366b6117f86.tar.bz2
resp-edd04d465f41613d85b505844542c366b6117f86.zip
Convert match form to if at lift stage (remove knowledge of match from compile stage and backends).
git-svn-id: http://svn.drobilla.net/resp/resp@342 ad02d1e2-f140-0410-9f75-f8b11f17cedd
Diffstat (limited to 'src/c.cpp')
-rw-r--r--src/c.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/c.cpp b/src/c.cpp
index a19f005..5bd3036 100644
--- a/src/c.cpp
+++ b/src/c.cpp
@@ -58,7 +58,7 @@ struct CEngine : public Engine {
CVal compileLiteral(CEnv& cenv, const AST* lit);
CVal compilePrimitive(CEnv& cenv, const ATuple* prim);
CVal compileString(CEnv& cenv, const char* str);
-
+
void writeModule(CEnv& cenv, std::ostream& os);
const string call(CEnv& cenv, CFunc f, const AType* retT);
@@ -72,11 +72,11 @@ private:
string name;
string text;
};
-
+
inline Value* llVal(CVal v) { return static_cast<Value*>(v); }
inline Function* llFunc(CFunc f) { return static_cast<Function*>(f); }
const Type* llType(const AType* t);
-
+
std::string out;
};