aboutsummaryrefslogtreecommitdiffstats
path: root/src/c.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2009-10-16 14:26:42 +0000
committerDavid Robillard <d@drobilla.net>2009-10-16 14:26:42 +0000
commit338da7070dfe47fdf041b35a6d84c00fab6d9678 (patch)
tree118736b14c7160709cee5e916c3adcb0d5bcd4ab /src/c.cpp
parentbf0d7b7add98f976592c9766273ecc84f8b0b6b9 (diff)
downloadresp-338da7070dfe47fdf041b35a6d84c00fab6d9678.tar.gz
resp-338da7070dfe47fdf041b35a6d84c00fab6d9678.tar.bz2
resp-338da7070dfe47fdf041b35a6d84c00fab6d9678.zip
Compile top level definitions to globalas.
git-svn-id: http://svn.drobilla.net/resp/tuplr@239 ad02d1e2-f140-0410-9f75-f8b11f17cedd
Diffstat (limited to 'src/c.cpp')
-rw-r--r--src/c.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/c.cpp b/src/c.cpp
index 4e9a49f..563c2ba 100644
--- a/src/c.cpp
+++ b/src/c.cpp
@@ -141,6 +141,8 @@ struct CEngine : public Engine {
CVal compileLiteral(CEnv& cenv, AST* lit);
CVal compilePrimitive(CEnv& cenv, APrimitive* prim);
CVal compileIf(CEnv& cenv, AIf* aif);
+ CVal compileGlobal(CEnv& cenv, AType* type, const string& name, CVal val);
+ CVal getGlobal(CEnv& cenv, CVal val);
void writeModule(CEnv& cenv, std::ostream& os) {
os << out;
@@ -310,3 +312,15 @@ CEngine::compilePrimitive(CEnv& cenv, APrimitive* prim)
out += (format("const %s %s = %s;\n") % *llType(cenv.type(prim)) % *varname % val).str();
return varname;
}
+
+CVal
+CEngine::compileGlobal(CEnv& cenv, AType* type, const string& name, CVal val)
+{
+ return NULL;
+}
+
+CVal
+CEngine::getGlobal(CEnv& cenv, CVal val)
+{
+ return NULL;
+}