aboutsummaryrefslogtreecommitdiffstats
path: root/src/c.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-12-15 21:48:21 +0000
committerDavid Robillard <d@drobilla.net>2012-12-15 21:48:21 +0000
commitd3708205163f784343733661d9fa01ff14f8b751 (patch)
treea771a4956753c66cd2c8b7c5eb9f1e4a0b30834a /src/c.cpp
parent10174ffc7ea08b7845dbe409a11811e820536468 (diff)
downloadresp-d3708205163f784343733661d9fa01ff14f8b751.tar.gz
resp-d3708205163f784343733661d9fa01ff14f8b751.tar.bz2
resp-d3708205163f784343733661d9fa01ff14f8b751.zip
Write forward declarations for all types and functions for mutual and/or nested recursion.
git-svn-id: http://svn.drobilla.net/resp/trunk@440 ad02d1e2-f140-0410-9f75-f8b11f17cedd
Diffstat (limited to 'src/c.cpp')
-rw-r--r--src/c.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/c.cpp b/src/c.cpp
index b2d17d1..934100c 100644
--- a/src/c.cpp
+++ b/src/c.cpp
@@ -41,6 +41,7 @@ struct CEngine : public Engine {
{
}
+ CFunc compileProt(CEnv& cenv, const string& name, const ATuple* args, const ATuple* type);
CFunc startFn(CEnv& cenv, const string& name, const ATuple* args, const ATuple* type);
void finishFn(CEnv& cenv, CFunc f, CVal ret, const AST* retT);
void eraseFn(CEnv& cenv, CFunc f);
@@ -175,6 +176,12 @@ CEngine::compileType(CEnv& cenv, const std::string& name, const AST* expr)
}
CFunc
+CEngine::compileProt(CEnv& cenv, const std::string& name, const ATuple* args, const ATuple* type)
+{
+ return NULL;
+}
+
+CFunc
CEngine::startFn(CEnv& cenv, const std::string& name, const ATuple* args, const ATuple* type)
{
const ATuple* argsT = type->prot();