summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2003-12-16 11:34:44 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2003-12-16 11:34:44 (GMT)
commit3933623394135029ff1d6e060fa065d75ff4a1b7 (patch)
tree70c2b076cbbb26c227dfffb0b32247fe9965504d
parent2534806dbf61a11a318e1e999e4ab37863602e2e (diff)
downloadtcl-3933623394135029ff1d6e060fa065d75ff4a1b7.zip
tcl-3933623394135029ff1d6e060fa065d75ff4a1b7.tar.gz
tcl-3933623394135029ff1d6e060fa065d75ff4a1b7.tar.bz2
Made a variable file-local for safety
-rw-r--r--ChangeLog4
-rwxr-xr-xgeneric/tclThreadAlloc.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 5fcdc8f..edc5885 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2003-12-16 Donal K. Fellows <donal.k.fellows@man.ac.uk>
+
+ * generic/tclThreadAlloc.c (binfo): Made variable file-local.
+
2003-12-15 David Gravereaux <davygrvy@pobox.com>
* win/tcl.rc:
diff --git a/generic/tclThreadAlloc.c b/generic/tclThreadAlloc.c
index 5ff9449..f818495 100755
--- a/generic/tclThreadAlloc.c
+++ b/generic/tclThreadAlloc.c
@@ -11,7 +11,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclThreadAlloc.c,v 1.6 2003/05/10 04:28:59 mistachkin Exp $
+ * RCS: @(#) $Id: tclThreadAlloc.c,v 1.7 2003/12/16 11:34:45 dkf Exp $
*/
#if defined(TCL_THREADS) && defined(USE_THREAD_ALLOC)
@@ -117,7 +117,7 @@ typedef struct Cache {
* to avoid calculating them repeatedly.
*/
-struct binfo {
+static struct {
size_t blocksize; /* Bucket blocksize. */
int maxblocks; /* Max blocks before move to share. */
int nmove; /* Num blocks to move to share. */