diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2005-05-30 00:04:24 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2005-05-30 00:04:24 (GMT) |
commit | 226baeea03144cecb753db8d1aa9e016d28fac06 (patch) | |
tree | 91fac3699c0ef1f44307ec17de71b31609962940 /generic/tclBasic.c | |
parent | e71c1f4ae2af9702d5f0aa3a63f7ef60474ad0be (diff) | |
download | tcl-226baeea03144cecb753db8d1aa9e016d28fac06.zip tcl-226baeea03144cecb753db8d1aa9e016d28fac06.tar.gz tcl-226baeea03144cecb753db8d1aa9e016d28fac06.tar.bz2 |
TIP#229 implementation
Diffstat (limited to 'generic/tclBasic.c')
-rw-r--r-- | generic/tclBasic.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/generic/tclBasic.c b/generic/tclBasic.c index e526dc2..144b2f7 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.157 2005/05/25 16:13:17 dgp Exp $ + * RCS: @(#) $Id: tclBasic.c,v 1.158 2005/05/30 00:04:45 dkf Exp $ */ #include "tclInt.h" @@ -1579,6 +1579,7 @@ Tcl_CreateCommand(interp, cmdName, proc, clientData, deleteProc) */ TclInvalidateNsCmdLookup(nsPtr); + TclInvalidateNsPath(nsPtr); } cmdPtr = (Command *) ckalloc(sizeof(Command)); Tcl_SetHashValue(hPtr, cmdPtr); @@ -1703,6 +1704,7 @@ Tcl_CreateObjCommand(interp, cmdName, proc, clientData, deleteProc) } hPtr = Tcl_CreateHashEntry(&nsPtr->cmdTable, tail, &new); + TclInvalidateNsPath(nsPtr); if (!new) { cmdPtr = (Command *) Tcl_GetHashValue(hPtr); @@ -1749,6 +1751,7 @@ Tcl_CreateObjCommand(interp, cmdName, proc, clientData, deleteProc) */ TclInvalidateNsCmdLookup(nsPtr); + TclInvalidateNsPath(nsPtr); } cmdPtr = (Command *) ckalloc(sizeof(Command)); Tcl_SetHashValue(hPtr, cmdPtr); |