summaryrefslogtreecommitdiffstats
path: root/generic/tclVar.c
diff options
context:
space:
mode:
authormsofer <msofer@noemail.net>2010-09-27 17:36:46 (GMT)
committermsofer <msofer@noemail.net>2010-09-27 17:36:46 (GMT)
commit9030d541c9dfc8b6017df1e41f84f37a68e11d95 (patch)
tree18b3aac1cc3c52d0eb8f4e07609448e974a2484b /generic/tclVar.c
parent46c0d74eb8d837ba28ac252937ca2a10ff743b16 (diff)
downloadtcl-9030d541c9dfc8b6017df1e41f84f37a68e11d95.zip
tcl-9030d541c9dfc8b6017df1e41f84f37a68e11d95.tar.gz
tcl-9030d541c9dfc8b6017df1e41f84f37a68e11d95.tar.bz2
* generic/tclVar.c: use the macro HasLocalVars everywhere
FossilOrigin-Name: e2ecd81658cede58deb04b07193dd9f7cd10820c
Diffstat (limited to 'generic/tclVar.c')
-rw-r--r--generic/tclVar.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/generic/tclVar.c b/generic/tclVar.c
index 9cc2ec6..3370f9d 100644
--- a/generic/tclVar.c
+++ b/generic/tclVar.c
@@ -16,7 +16,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.204 2010/09/22 00:57:11 hobbs Exp $
+ * RCS: @(#) $Id: tclVar.c,v 1.205 2010/09/27 17:36:48 msofer Exp $
*/
#include "tclInt.h"
@@ -5998,8 +5998,7 @@ TclInfoVarsCmd(
listPtr = Tcl_NewListObj(0, NULL);
- if (!(iPtr->varFramePtr->isProcCallFrame & FRAME_IS_PROC)
- || specificNsInPattern) {
+ if (!HasLocalVars(iPtr->varFramePtr) || specificNsInPattern) {
/*
* There is no frame pointer, the frame pointer was pushed only to
* activate a namespace, or we are in a procedure call frame but a
@@ -6235,7 +6234,7 @@ TclInfoLocalsCmd(
return TCL_ERROR;
}
- if (!(iPtr->varFramePtr->isProcCallFrame & FRAME_IS_PROC)) {
+ if (!HasLocalVars(iPtr->varFramePtr)) {
return TCL_OK;
}