summaryrefslogtreecommitdiffstats
path: root/generic/tclVar.c
diff options
context:
space:
mode:
authorMiguel Sofer <miguel.sofer@gmail.com>2010-09-27 17:36:47 (GMT)
committerMiguel Sofer <miguel.sofer@gmail.com>2010-09-27 17:36:47 (GMT)
commit2efdc538b9f8bd5d53fe38c26db1df0b19e2ede5 (patch)
tree18b3aac1cc3c52d0eb8f4e07609448e974a2484b /generic/tclVar.c
parent9e79ee9372f4ac031764314d9b3afd61fd55011b (diff)
downloadtcl-2efdc538b9f8bd5d53fe38c26db1df0b19e2ede5.zip
tcl-2efdc538b9f8bd5d53fe38c26db1df0b19e2ede5.tar.gz
tcl-2efdc538b9f8bd5d53fe38c26db1df0b19e2ede5.tar.bz2
* generic/tclVar.c: use the macro HasLocalVars everywhere
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;
}