aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2010-12-30 08:50:26 +0000
committerDavid Robillard <d@drobilla.net>2010-12-30 08:50:26 +0000
commit7b810b8a5fa6abc9765fc9c07b1ccb7a4e5e09b6 (patch)
treea9324d51a27ecb6318c06dbfae88bb1e4be75561
parent2eda11ca28589991471ff3251cccc2471424770e (diff)
downloadresp-7b810b8a5fa6abc9765fc9c07b1ccb7a4e5e09b6.tar.gz
resp-7b810b8a5fa6abc9765fc9c07b1ccb7a4e5e09b6.tar.bz2
resp-7b810b8a5fa6abc9765fc9c07b1ccb7a4e5e09b6.zip
Rename allocation function to __resp_alloc.
git-svn-id: http://svn.drobilla.net/resp/resp@375 ad02d1e2-f140-0410-9f75-f8b11f17cedd
-rw-r--r--src/c.cpp2
-rw-r--r--src/gc.cpp2
-rw-r--r--src/llvm.cpp2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/c.cpp b/src/c.cpp
index ff4f09a..fb330dc 100644
--- a/src/c.cpp
+++ b/src/c.cpp
@@ -37,7 +37,7 @@ struct CEngine : public Engine {
: out(
"#include <stdint.h>\n"
"#include <stdbool.h>\n"
- "void* resp_gc_allocate(unsigned size, uint8_t tag);\n\n")
+ "void* __resp_alloc(unsigned size, uint8_t tag);\n\n")
{
}
diff --git a/src/gc.cpp b/src/gc.cpp
index 4bae933..e6a296b 100644
--- a/src/gc.cpp
+++ b/src/gc.cpp
@@ -97,7 +97,7 @@ GC::collect(const Roots& roots)
extern "C" {
void*
-resp_gc_allocate(unsigned size)
+__resp_alloc(unsigned size)
{
static const size_t COLLECT_SIZE = 8 * 1024 * 1024; // 8 MiB
diff --git a/src/llvm.cpp b/src/llvm.cpp
index 28d6f36..437bd40 100644
--- a/src/llvm.cpp
+++ b/src/llvm.cpp
@@ -125,7 +125,7 @@ LLVMEngine::LLVMEngine()
FunctionType* funcT = FunctionType::get(
PointerType::get(Type::getInt8Ty(context), 0), argsT, false);
alloc = Function::Create(
- funcT, Function::ExternalLinkage, "resp_gc_allocate", module);
+ funcT, Function::ExternalLinkage, "__resp_alloc", module);
// Build Object type (tag only, binary compatible with any constructed thing)
vector<const Type*> ctypes;