aboutsummaryrefslogtreecommitdiffstats
path: root/src/c.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2010-12-09 01:11:41 +0000
committerDavid Robillard <d@drobilla.net>2010-12-09 01:11:41 +0000
commit152c910f89e078099a5aba6d7d6f7fa28ceea2c3 (patch)
tree380b2ad500a05a48e8e378c280941d2f3497983b /src/c.cpp
parente78acdecac3611299db12705c36bbc882efd42fe (diff)
downloadresp-152c910f89e078099a5aba6d7d6f7fa28ceea2c3.tar.gz
resp-152c910f89e078099a5aba6d7d6f7fa28ceea2c3.tar.bz2
resp-152c910f89e078099a5aba6d7d6f7fa28ceea2c3.zip
Consistent engine global[Set|Get] interface.
git-svn-id: http://svn.drobilla.net/resp/resp@321 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 b4089bb..5d5ddd3 100644
--- a/src/c.cpp
+++ b/src/c.cpp
@@ -45,8 +45,8 @@ struct CEngine : public Engine {
CVal compileCall(CEnv& cenv, CFunc f, const AType* funcT, const vector<CVal>& args);
CVal compileCons(CEnv& cenv, const AType* type, CVal rtti, const vector<CVal>& fields);
CVal compileDot(CEnv& cenv, CVal tup, int32_t index);
- CVal compileGlobal(CEnv& cenv, const AType* type, const string& sym, CVal val);
- CVal compileGlobalGet(CEnv& cenv, const string& sym, CVal val);
+ CVal compileGlobalSet(CEnv& cenv, const string& s, CVal v, const AType* t);
+ CVal compileGlobalGet(CEnv& cenv, const string& s, CVal v);
IfState compileIfStart(CEnv& cenv);
void compileIfBranch(CEnv& cenv, IfState state, CVal condV, const AST* then);
CVal compileIfEnd(CEnv& cenv, IfState state, CVal elseV, const AType* type);
@@ -312,7 +312,7 @@ CEngine::compilePrimitive(CEnv& cenv, const ATuple* prim)
}
CVal
-CEngine::compileGlobal(CEnv& cenv, const AType* type, const string& sym, CVal val)
+CEngine::compileGlobalSet(CEnv& cenv, const string& sym, CVal val, const AType* type)
{
return NULL;
}