diff options
author | msofer <msofer@noemail.net> | 2004-05-04 02:44:23 (GMT) |
---|---|---|
committer | msofer <msofer@noemail.net> | 2004-05-04 02:44:23 (GMT) |
commit | 0b39015fa3da5e25aaf68de193c05babf0aed1b3 (patch) | |
tree | 84065ce15c60b6ff08a320c95b732097cc04b6a1 /generic/tclCompile.c | |
parent | e53bc890c7a0129ad0c91fcb5429684c64896644 (diff) | |
download | tcl-0b39015fa3da5e25aaf68de193c05babf0aed1b3.zip tcl-0b39015fa3da5e25aaf68de193c05babf0aed1b3.tar.gz tcl-0b39015fa3da5e25aaf68de193c05babf0aed1b3.tar.bz2 |
slight improvement to last commit
FossilOrigin-Name: eb4fd595f340cff37d753044756e7326c64e9bb1
Diffstat (limited to 'generic/tclCompile.c')
-rw-r--r-- | generic/tclCompile.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/generic/tclCompile.c b/generic/tclCompile.c index 52c3487..e75a5a4 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.63 2004/05/04 02:38:07 msofer Exp $ + * RCS: @(#) $Id: tclCompile.c,v 1.64 2004/05/04 02:44:23 msofer Exp $ */ #include "tclInt.h" @@ -919,6 +919,12 @@ TclCompileScript(interp, script, numBytes, envPtr) Tcl_ResetResult(interp); isFirstCmd = 1; + if (envPtr->procPtr != NULL) { + cmdNsPtr = envPtr->procPtr->cmdPtr->nsPtr; + } else { + cmdNsPtr = NULL; /* use current NS */ + } + /* * Each iteration through the following loop compiles the next * command from the script. @@ -1001,12 +1007,6 @@ TclCompileScript(interp, script, numBytes, envPtr) EnterCmdStartData(envPtr, currCmdIndex, (parse.commandStart - envPtr->source), startCodeOffset); - if (envPtr->procPtr != NULL) { - cmdNsPtr = envPtr->procPtr->cmdPtr->nsPtr; - } else { - cmdNsPtr = NULL; /* use current NS */ - } - /* * Each iteration of the following loop compiles one word * from the command. |