summaryrefslogtreecommitdiffstats
path: root/generic/tclAlloc.c
diff options
context:
space:
mode:
authorredman <redman>1999-08-10 17:35:14 (GMT)
committerredman <redman>1999-08-10 17:35:14 (GMT)
commit324d20b570be85ce259bea58a1d37768b7a01634 (patch)
tree17312f8cada055139e9649674bdf4d701fdf2f13 /generic/tclAlloc.c
parent7cd43815d0b5a7b4c81e4fd496673bc241e83eb1 (diff)
downloadtcl-324d20b570be85ce259bea58a1d37768b7a01634.zip
tcl-324d20b570be85ce259bea58a1d37768b7a01634.tar.gz
tcl-324d20b570be85ce259bea58a1d37768b7a01634.tar.bz2
* generic/tclListObj.c:core_8_2_b3_base
* generic/tcl.decls: * generic/tclDecls.h: Applied patch from Jim Ingham to change the prototype of Tcl_ListObjGetElements to have the last argument have a CONST so that you can feed it the objv that you get from the standard TclObj command proc. * generic/tclAlloc.c: * generic/tclCmdIL.c: * generic/tclIO.c: * generic/tclThread.c: * win/tclWinThrd.c: * unix/tclUnixThrd.c: Fixed Brent's changes so that they work on Windows (and he fixed the bug in the Unix thread implementation).
Diffstat (limited to 'generic/tclAlloc.c')
-rw-r--r--generic/tclAlloc.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/generic/tclAlloc.c b/generic/tclAlloc.c
index f66dc57..0b9bace 100644
--- a/generic/tclAlloc.c
+++ b/generic/tclAlloc.c
@@ -15,7 +15,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclAlloc.c,v 1.7 1999/08/10 02:42:12 welch Exp $
+ * RCS: @(#) $Id: tclAlloc.c,v 1.8 1999/08/10 17:35:18 redman Exp $
*/
#include "tclInt.h"
@@ -162,7 +162,9 @@ TclInitAlloc()
{
if (!allocInit) {
allocInit = 1;
+#ifdef TCL_THREADS
allocMutexPtr = Tcl_GetAllocMutex();
+#endif
}
}
@@ -254,7 +256,7 @@ TclpAlloc(nbytes)
* may be used before any other part of Tcl. E.g., see
* main() for tclsh!
*/
- TclAllocInit();
+ TclInitAlloc();
}
Tcl_MutexLock(allocMutexPtr);
/*