From d399ea9333e69c2506ba09754a8c1b8d292e9085 Mon Sep 17 00:00:00 2001 From: Thomas Grill Date: Sat, 10 Dec 2005 21:34:08 +0000 Subject: 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 --- externals/grill/flext/source/flsupport.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'externals/grill/flext/source/flsupport.cpp') 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 *); -- cgit v1.2.1