summaryrefslogtreecommitdiffstats
path: root/generic/tclNamesp.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2016-09-07 12:54:51 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2016-09-07 12:54:51 (GMT)
commitea21bb5de3ca09b64d101656f0613cd10f877aa6 (patch)
treec23482e15f548dd69d16c9749aeb85e3b4cd06d5 /generic/tclNamesp.c
parent907e3ead5a3a2615c5721af947895bb4cacd3c99 (diff)
parent2a4281604ab70d1943a74f592e151c6a203f0bdd (diff)
downloadtcl-ea21bb5de3ca09b64d101656f0613cd10f877aa6.zip
tcl-ea21bb5de3ca09b64d101656f0613cd10f877aa6.tar.gz
tcl-ea21bb5de3ca09b64d101656f0613cd10f877aa6.tar.bz2
Fix [d4e7780ca1681cd095dbd81fe264feff75c988f7|d4e7780ca1]: "global" cmd literal sharing vs. per-interp resolvers
Diffstat (limited to 'generic/tclNamesp.c')
-rw-r--r--generic/tclNamesp.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/generic/tclNamesp.c b/generic/tclNamesp.c
index 5930859..a8d351f 100644
--- a/generic/tclNamesp.c
+++ b/generic/tclNamesp.c
@@ -2566,7 +2566,9 @@ Tcl_FindCommand(
}
if (result == TCL_OK) {
+ ((Command *)cmd)->flags |= CMD_VIA_RESOLVER;
return cmd;
+
} else if (result != TCL_CONTINUE) {
return NULL;
}
@@ -2658,6 +2660,7 @@ Tcl_FindCommand(
}
if (cmdPtr != NULL) {
+ cmdPtr->flags &= ~CMD_VIA_RESOLVER;
return (Tcl_Command) cmdPtr;
}