summaryrefslogtreecommitdiffstats
path: root/generic/tclVar.c
diff options
context:
space:
mode:
authorMiguel Sofer <miguel.sofer@gmail.com>2007-06-10 20:25:54 (GMT)
committerMiguel Sofer <miguel.sofer@gmail.com>2007-06-10 20:25:54 (GMT)
commitf5d80971097cf57bdbe909fc600276f8670eaf9d (patch)
tree59689956cdc2f9a9567ae1da9764d77ba651689a /generic/tclVar.c
parent5921307059d261f04a77cfeb4c0658454884c646 (diff)
downloadtcl-f5d80971097cf57bdbe909fc600276f8670eaf9d.zip
tcl-f5d80971097cf57bdbe909fc600276f8670eaf9d.tar.gz
tcl-f5d80971097cf57bdbe909fc600276f8670eaf9d.tar.bz2
* generic/tclInt.h:
* generic/tclNamesp.c: * generic/tclObj.c: * generic/tclvar.c: new macros TclGetCurrentNamespace() and TclGetGlobalNamespace(); Tcl_GetCommandFromObj and TclGetNamespaceFromObj rewritten to make the logic clearer; slightly faster too.
Diffstat (limited to 'generic/tclVar.c')
-rw-r--r--generic/tclVar.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/tclVar.c b/generic/tclVar.c
index 53e7739..05f7215 100644
--- a/generic/tclVar.c
+++ b/generic/tclVar.c
@@ -15,7 +15,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclVar.c,v 1.135 2007/05/11 09:44:59 dkf Exp $
+ * RCS: @(#) $Id: tclVar.c,v 1.136 2007/06/10 20:25:56 msofer Exp $
*/
#include "tclInt.h"
@@ -4063,7 +4063,7 @@ TclDeleteNamespaceVars(
if (nsPtr == iPtr->globalNsPtr) {
flags = TCL_GLOBAL_ONLY;
- } else if (nsPtr == (Namespace *) Tcl_GetCurrentNamespace(interp)) {
+ } else if (nsPtr == (Namespace *) TclGetCurrentNamespace(interp)) {
flags = TCL_NAMESPACE_ONLY;
}
@@ -4131,7 +4131,7 @@ TclDeleteVars(
int flags;
ActiveVarTrace *activePtr;
Tcl_Obj *objPtr;
- Namespace *currNsPtr = (Namespace *) Tcl_GetCurrentNamespace(interp);
+ Namespace *currNsPtr = (Namespace *) TclGetCurrentNamespace(interp);
/*
* Determine what flags to pass to the trace callback functions.