From 5dac6590e294d13ca961fcfbb881627cb2fa76bb Mon Sep 17 00:00:00 2001 From: h_vogt Date: Sun, 1 Feb 2009 09:49:35 +0000 Subject: [PATCH] New heap only for tclspice in Windows (HAS_TCLWIN defined) --- ChangeLog | 5 +++++ src/frontend/outitf.c | 2 +- src/misc/alloc.c | 3 ++- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 63e29b5d5..574b2a214 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2009-02-01 Holger Vogt + * alloc.c, outitf.c: Use the new heap only for tclspice in Windows + (HAS_TCLWIN defined) because of a crash in the 'destroy' command + inpcom.c:1807 do not remove white spaces in an alter or altermod command + 2009-01-31 Holger Vogt * xpressn.c, spicenum.c, numparam.h, runcoms.c, runcoms2.c: Incompatibilty to MAC OSX removed by proper variable declarations diff --git a/src/frontend/outitf.c b/src/frontend/outitf.c index 9e299a7d0..6b5aee8eb 100644 --- a/src/frontend/outitf.c +++ b/src/frontend/outitf.c @@ -68,7 +68,7 @@ static void freeRun(runDesc *run); to prevent massive memory fragmentation of standard process heap. This is especially required by TCL for Windows, but may help also under standard Windows GUI. */ -#if (defined(HAS_WINDOWS) || defined(HAS_TCLWIN)) && (defined(_MSC_VER) || defined(__MINGW32__)) +#if (defined(HAS_TCLWIN)) && (defined(_MSC_VER) || defined(__MINGW32__)) #define newrealloc hrealloc #else #define newrealloc trealloc diff --git a/src/misc/alloc.c b/src/misc/alloc.c index e01455fe5..0ea600517 100644 --- a/src/misc/alloc.c +++ b/src/misc/alloc.c @@ -143,7 +143,8 @@ trealloc(void *ptr, size_t num) Function is used in outitf.c to prevent heap fragmentation An additional heap outheap is used to store the plot output data. */ -#if defined(HAS_WINDOWS) || defined(HAS_TCLWIN) +//#if defined(HAS_WINDOWS) || defined(HAS_TCLWIN) +#if defined(HAS_TCLWIN) #if defined(_MSC_VER) || defined(__MINGW32__) void * hrealloc(void *ptr, size_t num)