From 7b810b8a5fa6abc9765fc9c07b1ccb7a4e5e09b6 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 30 Dec 2010 08:50:26 +0000 Subject: Rename allocation function to __resp_alloc. git-svn-id: http://svn.drobilla.net/resp/resp@375 ad02d1e2-f140-0410-9f75-f8b11f17cedd --- src/c.cpp | 2 +- src/gc.cpp | 2 +- src/llvm.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src') 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 \n" "#include \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 ctypes; -- cgit v1.2.1