summaryrefslogtreecommitdiffstats
path: root/generic/tclNamesp.c
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2007-06-22 20:42:22 (GMT)
committerdgp <dgp@users.sourceforge.net>2007-06-22 20:42:22 (GMT)
commit502f655491642c7cc617929b6e51b9e966d317bd (patch)
treef2b17196e1b5deb5121fdc81218a070a64828e5b /generic/tclNamesp.c
parent6d2ef9cec6186ac320b6baea1c8c35d20b953061 (diff)
downloadtcl-502f655491642c7cc617929b6e51b9e966d317bd.zip
tcl-502f655491642c7cc617929b6e51b9e966d317bd.tar.gz
tcl-502f655491642c7cc617929b6e51b9e966d317bd.tar.bz2
* generic/tclCmdIL.c: More conversions to use TclStackAlloc.
* generic/tclScan.c:
Diffstat (limited to 'generic/tclNamesp.c')
-rw-r--r--generic/tclNamesp.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/generic/tclNamesp.c b/generic/tclNamesp.c
index 70beba7..098b8ba 100644
--- a/generic/tclNamesp.c
+++ b/generic/tclNamesp.c
@@ -22,19 +22,12 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclNamesp.c,v 1.142 2007/06/22 17:09:18 dgp Exp $
+ * RCS: @(#) $Id: tclNamesp.c,v 1.143 2007/06/22 20:42:24 dgp Exp $
*/
#include "tclInt.h"
/*
- * Initial size of stack allocated space for tail list - used when resetting
- * shadowed command references in the function TclResetShadowedCmdRefs.
- */
-
-#define NUM_TRAIL_ELEMS 5
-
-/*
* Thread-local storage used to avoid having a global lock on data that is not
* limited to a single interpreter.
*/
@@ -2661,7 +2654,7 @@ TclResetShadowedCmdRefs(
Namespace *globalNsPtr = (Namespace *) TclGetGlobalNamespace(interp);
int found, i;
int trailFront = -1;
- int trailSize = NUM_TRAIL_ELEMS;
+ int trailSize = 5; /* formerly NUM_TRAIL_ELEMS */
Namespace **trailPtr = (Namespace **)
TclStackAlloc(interp, trailSize * sizeof(Namespace *));