summaryrefslogtreecommitdiffstats
path: root/generic/tclCmdIL.c
diff options
context:
space:
mode:
authorstanton <stanton@noemail.net>1998-08-07 11:41:56 (GMT)
committerstanton <stanton@noemail.net>1998-08-07 11:41:56 (GMT)
commit73a9e0042f52d29a4da023df144b9536a928f010 (patch)
tree31699963a7247d59cbdb8f6295727c342bc46d31 /generic/tclCmdIL.c
parent7c3ca0159d0816a1a999f1a5251b33fa4c544d80 (diff)
downloadtcl-73a9e0042f52d29a4da023df144b9536a928f010.zip
tcl-73a9e0042f52d29a4da023df144b9536a928f010.tar.gz
tcl-73a9e0042f52d29a4da023df144b9536a928f010.tar.bz2
changed isArg and isTemp fields to us flags field in CompiledLocal structure
FossilOrigin-Name: 4001e2ab5b11d3d18118aa1f7081e0ea95870f58
Diffstat (limited to 'generic/tclCmdIL.c')
-rw-r--r--generic/tclCmdIL.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/generic/tclCmdIL.c b/generic/tclCmdIL.c
index ce79efe..e296d3d 100644
--- a/generic/tclCmdIL.c
+++ b/generic/tclCmdIL.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.
*
- * SCCS: %Z% $Id: tclCmdIL.c,v 1.5 1998/07/28 13:53:29 escoffon Exp $
+ * SCCS: %Z% $Id: tclCmdIL.c,v 1.6 1998/08/07 11:41:56 stanton Exp $
*/
#include "tclInt.h"
@@ -486,7 +486,7 @@ InfoArgsCmd(dummy, interp, objc, objv)
listObjPtr = Tcl_NewListObj(0, (Tcl_Obj **) NULL);
for (localPtr = procPtr->firstLocalPtr; localPtr != NULL;
localPtr = localPtr->nextPtr) {
- if (localPtr->isArg) {
+ if (TclIsVarArgument(localPtr)) {
Tcl_ListObjAppendElement(interp, listObjPtr,
Tcl_NewStringObj(localPtr->name, -1));
}
@@ -829,7 +829,8 @@ InfoDefaultCmd(dummy, interp, objc, objv)
for (localPtr = procPtr->firstLocalPtr; localPtr != NULL;
localPtr = localPtr->nextPtr) {
- if ((localPtr->isArg) && (strcmp(argName, localPtr->name) == 0)) {
+ if (TclIsVarArgument(localPtr)
+ && (strcmp(argName, localPtr->name) == 0)) {
if (localPtr->defValuePtr != NULL) {
valueObjPtr = Tcl_ObjSetVar2(interp, objv[4], NULL,
localPtr->defValuePtr, 0);
@@ -1283,7 +1284,7 @@ AppendLocals(interp, listPtr, pattern, includeLinks)
* Skip nameless (temporary) variables and undefined variables
*/
- if (!localPtr->isTemp && !TclIsVarUndefined(varPtr)) {
+ if (!TclIsVarTemporary(localPtr) && !TclIsVarUndefined(varPtr)) {
varName = varPtr->name;
if ((pattern == NULL) || Tcl_StringMatch(varName, pattern)) {
Tcl_ListObjAppendElement(interp, listPtr,