aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/flext/source/flsupport.cpp
diff options
context:
space:
mode:
authorThomas Grill <xovo@users.sourceforge.net>2005-12-15 23:04:06 +0000
committerThomas Grill <xovo@users.sourceforge.net>2005-12-15 23:04:06 +0000
commitec54f5e49b24dc57e389b7bce58f967ee69a4b01 (patch)
tree15d495973fa6053835fd03b50e3f64dc6717815e /externals/grill/flext/source/flsupport.cpp
parent90d5b8b4a064420d74678654e94ea4755b377f21 (diff)
new flext::CopyAtoms function
fixed dangerous spot (also memory leak) with message queuing flext::Forward has more incarnations now added message bundles (flext::MsgBundle) fixes for gcc 3.3, changing FLEXT_USECMEM to FLEXT_USE_CMEMw fixed initialization of message bundle items svn path=/trunk/; revision=4228
Diffstat (limited to 'externals/grill/flext/source/flsupport.cpp')
-rw-r--r--externals/grill/flext/source/flsupport.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/externals/grill/flext/source/flsupport.cpp b/externals/grill/flext/source/flsupport.cpp
index 929de35e..eaa27a60 100644
--- a/externals/grill/flext/source/flsupport.cpp
+++ b/externals/grill/flext/source/flsupport.cpp
@@ -106,7 +106,7 @@ void flext::Setup()
#define LARGEALLOC 32000
-#ifndef FLEXT_USECMEM
+#ifndef FLEXT_USE_CMEM
#ifdef FLEXT_DEBUGMEM
static const size_t memtest = 0x12345678L;
@@ -131,7 +131,7 @@ void *flext_root::operator new(size_t bytes)
//! We need system locking here for secondary threads!
SYSLOCK();
-#if defined(FLEXT_USECMEM)
+#if defined(FLEXT_USE_CMEM)
blk = (char *)::malloc(bytes);
#else
blk = (char *)::getbytes(bytes);
@@ -175,7 +175,7 @@ void flext_root::operator delete(void *blk)
//! We need system locking here for secondary threads!
SYSLOCK();
-#if defined(FLEXT_USECMEM)
+#if defined(FLEXT_USE_CMEM)
::free(ori);
#else
::freebytes(ori,bytes);
@@ -217,7 +217,7 @@ void *flext_root::NewAligned(size_t bytes,int bitalign)
//! We need system locking here for secondary threads!
SYSLOCK();
-#if defined(FLEXT_USECMEM)
+#if defined(FLEXT_USE_CMEM)
blk = (char *)::malloc(bytes);
#else
blk = (char *)::getbytes(bytes);
@@ -251,7 +251,7 @@ void flext_root::FreeAligned(void *blk)
//! We need system locking here for secondary threads!
SYSLOCK();
-#if defined(FLEXT_USECMEM)
+#if defined(FLEXT_USE_CMEM)
::free(ori);
#else
::freebytes(ori,bytes);