diff options
author | stanton <stanton> | 1998-08-07 11:41:56 (GMT) |
---|---|---|
committer | stanton <stanton> | 1998-08-07 11:41:56 (GMT) |
commit | 9ddc01dabd71a7b10cdd443522b43e2c27549ac4 (patch) | |
tree | 31699963a7247d59cbdb8f6295727c342bc46d31 /generic/tclCmdIL.c | |
parent | e455d67c2f46e245f96e3299df9fc245da96b297 (diff) | |
download | tcl-9ddc01dabd71a7b10cdd443522b43e2c27549ac4.zip tcl-9ddc01dabd71a7b10cdd443522b43e2c27549ac4.tar.gz tcl-9ddc01dabd71a7b10cdd443522b43e2c27549ac4.tar.bz2 |
changed isArg and isTemp fields to us flags field in CompiledLocal structure
Diffstat (limited to 'generic/tclCmdIL.c')
-rw-r--r-- | generic/tclCmdIL.c | 9 |
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, |