summaryrefslogtreecommitdiffstats
path: root/generic/tclBasic.c
diff options
context:
space:
mode:
authormsofer <msofer@noemail.net>2005-11-18 23:07:26 (GMT)
committermsofer <msofer@noemail.net>2005-11-18 23:07:26 (GMT)
commit7eec16d25b5c416be1468236ddaa14586e2a2409 (patch)
tree55f1b4ed5f653180f0ac89f9dfb2510b141648c0 /generic/tclBasic.c
parent702bac2dfb814d1644e097ae0eadf9483d8ee49b (diff)
downloadtcl-7eec16d25b5c416be1468236ddaa14586e2a2409.zip
tcl-7eec16d25b5c416be1468236ddaa14586e2a2409.tar.gz
tcl-7eec16d25b5c416be1468236ddaa14586e2a2409.tar.bz2
* generic/tclBasic.c (Tcl_DeleteCommandFromToken):
* generic/tclCmdMZ.c (TraceCommandProc): * generic/tclInt.h (NS_KILLED): * generic/tclNamesp.c (Tcl_DeleteNamespace * tests/namespace.test (namespace-7.3-6): * tests/trace.test (trace-20.13-16): fix [Bugs 1355942/1355342]. FossilOrigin-Name: 56a462e45ca6948aca94cef4232dec3080078aa1
Diffstat (limited to 'generic/tclBasic.c')
-rw-r--r--generic/tclBasic.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/generic/tclBasic.c b/generic/tclBasic.c
index 4871844..b3474bb 100644
--- a/generic/tclBasic.c
+++ b/generic/tclBasic.c
@@ -13,7 +13,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclBasic.c,v 1.75.2.18 2005/10/23 22:01:28 msofer Exp $
+ * RCS: @(#) $Id: tclBasic.c,v 1.75.2.19 2005/11/18 23:07:26 msofer Exp $
*/
#include "tclInt.h"
@@ -2431,6 +2431,13 @@ Tcl_DeleteCommandFromToken(interp, cmd)
cmdPtr->flags |= CMD_IS_DELETED;
/*
+ * Bump the command epoch counter. This will invalidate all cached
+ * references that point to this command.
+ */
+
+ cmdPtr->cmdEpoch++;
+
+ /*
* Call trace procedures for the command being deleted. Then delete
* its traces.
*/
@@ -2485,13 +2492,6 @@ Tcl_DeleteCommandFromToken(interp, cmd)
}
/*
- * Bump the command epoch counter. This will invalidate all cached
- * references that point to this command.
- */
-
- cmdPtr->cmdEpoch++;
-
- /*
* If this command was imported into other namespaces, then imported
* commands were created that refer back to this command. Delete these
* imported commands now.