diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2018-05-22 20:53:24 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2018-05-22 20:53:24 (GMT) |
commit | 8421b3fd06ee46812e8fa41abdccf92b73bd3ec6 (patch) | |
tree | f175e43fb180d0b756186a839cbeee766ec8e27c /generic/tclAlloc.c | |
parent | 5ab4491e632e8c1505d464236617c0a8c2f84ae4 (diff) | |
download | tcl-8421b3fd06ee46812e8fa41abdccf92b73bd3ec6.zip tcl-8421b3fd06ee46812e8fa41abdccf92b73bd3ec6.tar.gz tcl-8421b3fd06ee46812e8fa41abdccf92b73bd3ec6.tar.bz2 |
Simplify usage of TCL_THREAD, along the lines of [eeddb0693a950be980a66de3811630a00c7bab54|eeddb0693a]. Suggested by DKF
Diffstat (limited to 'generic/tclAlloc.c')
-rw-r--r-- | generic/tclAlloc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/tclAlloc.c b/generic/tclAlloc.c index e04e9c6..df1718b 100644 --- a/generic/tclAlloc.c +++ b/generic/tclAlloc.c @@ -22,7 +22,7 @@ */ #include "tclInt.h" -#if (defined(TCL_THREADS) && !TCL_THREADS) || !defined(USE_THREAD_ALLOC) +#if !TCL_THREADS || !defined(USE_THREAD_ALLOC) #if USE_TCLALLOC @@ -121,7 +121,7 @@ static struct block bigBlocks={ /* Big blocks aren't suballocated. */ * variable. */ -#if !defined(TCL_THREADS) || TCL_THREADS +#if TCL_THREADS static Tcl_Mutex *allocMutexPtr; #endif static int allocInit = 0; @@ -171,7 +171,7 @@ TclInitAlloc(void) { if (!allocInit) { allocInit = 1; -#if !defined(TCL_THREADS) || TCL_THREADS +#if TCL_THREADS allocMutexPtr = Tcl_GetAllocMutex(); #endif } |