diff options
| author | Miguel Sofer <miguel.sofer@gmail.com> | 2002-07-11 12:39:16 (GMT) |
|---|---|---|
| committer | Miguel Sofer <miguel.sofer@gmail.com> | 2002-07-11 12:39:16 (GMT) |
| commit | 9c1e37f7d09d4ac42710f933d5374edd21168352 (patch) | |
| tree | 76689cdb40b5d32c219dbcc3b2d53e72be1ece2e /generic/tclCompile.c | |
| parent | 439e46d7ab356a4a7fcd58ab6b5c24dad69e75a5 (diff) | |
| download | tcl-9c1e37f7d09d4ac42710f933d5374edd21168352.zip tcl-9c1e37f7d09d4ac42710f933d5374edd21168352.tar.gz tcl-9c1e37f7d09d4ac42710f933d5374edd21168352.tar.bz2 | |
tclCompile.c and tclProc.c: small changes in the usage of the VAR_UNDEFINED flag.
Diffstat (limited to 'generic/tclCompile.c')
| -rw-r--r-- | generic/tclCompile.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/tclCompile.c b/generic/tclCompile.c index 83ff215..20d0448 100644 --- a/generic/tclCompile.c +++ b/generic/tclCompile.c @@ -11,7 +11,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclCompile.c,v 1.37 2002/06/17 22:52:51 hobbs Exp $ + * RCS: @(#) $Id: tclCompile.c,v 1.38 2002/07/11 12:39:16 msofer Exp $ */ #include "tclInt.h" @@ -1770,7 +1770,7 @@ TclFindCompiledLocal(name, nameBytes, create, flags, procPtr) localPtr->nextPtr = NULL; localPtr->nameLength = nameBytes; localPtr->frameIndex = localVar; - localPtr->flags = flags; + localPtr->flags = flags | VAR_UNDEFINED; if (name == NULL) { localPtr->flags |= VAR_TEMPORARY; } @@ -1894,7 +1894,7 @@ TclInitCompiledLocals(interp, framePtr, nsPtr) varPtr->refCount = 0; varPtr->tracePtr = NULL; varPtr->searchPtr = NULL; - varPtr->flags = (localPtr->flags | VAR_UNDEFINED); + varPtr->flags = localPtr->flags; } varPtr++; } |
