diff options
author | Thomas Grill <xovo@users.sourceforge.net> | 2005-12-10 21:34:08 +0000 |
---|---|---|
committer | Thomas Grill <xovo@users.sourceforge.net> | 2005-12-10 21:34:08 +0000 |
commit | d399ea9333e69c2506ba09754a8c1b8d292e9085 (patch) | |
tree | 706a0a20dbf2de36a423b871eed7081935dae0ed /externals/grill/flext/source/flsupport.cpp | |
parent | 8bbf9e95a3ef69860a442852d595601d5718f0f4 (diff) |
some minor changes after valgrind run
fix uninitialized pointer
With FLEXT_USECMEM normal C library memory allocation will be used, otherwise global operators will be overridden to use memory allocation by the real-time system (getbytes).
more pthreads V2 fixes
Deprecated FLEXT_NOGLOBALNEW in favor of FLEXT_USECMEM.
svn path=/trunk/; revision=4184
Diffstat (limited to 'externals/grill/flext/source/flsupport.cpp')
-rw-r--r-- | externals/grill/flext/source/flsupport.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/externals/grill/flext/source/flsupport.cpp b/externals/grill/flext/source/flsupport.cpp index a05f2b04..3443eb46 100644 --- a/externals/grill/flext/source/flsupport.cpp +++ b/externals/grill/flext/source/flsupport.cpp @@ -104,6 +104,8 @@ void flext::Setup() #define LARGEALLOC 32000 +#ifndef FLEXT_USECMEM + #ifdef FLEXT_DEBUGMEM static const size_t memtest = 0x12345678L; #endif @@ -192,6 +194,8 @@ bool flext_root::MemCheck(void *blk) } #endif +#endif + void *flext_root::NewAligned(size_t bytes,int bitalign) { const size_t ovh = sizeof(size_t)+sizeof(char *); |