diff options
author | redman <redman@noemail.net> | 1999-08-10 17:35:14 (GMT) |
---|---|---|
committer | redman <redman@noemail.net> | 1999-08-10 17:35:14 (GMT) |
commit | 0bfc9b13430b2852bd39b852de8c15f730db9595 (patch) | |
tree | 17312f8cada055139e9649674bdf4d701fdf2f13 /generic/tclAlloc.c | |
parent | c498ce424205023240debef2488295b5916e61d3 (diff) | |
download | tcl-0bfc9b13430b2852bd39b852de8c15f730db9595.zip tcl-0bfc9b13430b2852bd39b852de8c15f730db9595.tar.gz tcl-0bfc9b13430b2852bd39b852de8c15f730db9595.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).
FossilOrigin-Name: cfb9ace67b1a6f28603349a246c29834927fcf0c
Diffstat (limited to 'generic/tclAlloc.c')
-rw-r--r-- | generic/tclAlloc.c | 6 |
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); /* |