summaryrefslogtreecommitdiffstats
path: root/generic/tclCompCmds.c
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2013-07-15 17:07:51 (GMT)
committerdgp <dgp@users.sourceforge.net>2013-07-15 17:07:51 (GMT)
commita398b126a43e46efa6d6044b0bcf57a4b9385c4e (patch)
tree90b87619753141befd59aa2e3dc83c3448bc85ce /generic/tclCompCmds.c
parent5e4c2308ce99d3d1349d0defd0585b05cd11e3fe (diff)
downloadtcl-a398b126a43e46efa6d6044b0bcf57a4b9385c4e.zip
tcl-a398b126a43e46efa6d6044b0bcf57a4b9385c4e.tar.gz
tcl-a398b126a43e46efa6d6044b0bcf57a4b9385c4e.tar.bz2
Prefer CompileWord() over CompileTokens() when possible.
Diffstat (limited to 'generic/tclCompCmds.c')
-rw-r--r--generic/tclCompCmds.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/generic/tclCompCmds.c b/generic/tclCompCmds.c
index 561d816..37ce335 100644
--- a/generic/tclCompCmds.c
+++ b/generic/tclCompCmds.c
@@ -2638,8 +2638,7 @@ CompileEachloopCmd(
i < numWords-1;
i++, tokenPtr = TokenAfter(tokenPtr)) {
if ((i%2 == 0) && (i > 0)) {
- SetLineInformation(i);
- CompileTokens(envPtr, tokenPtr, interp);
+ CompileWord(envPtr, tokenPtr, interp, i);
tempVar = (firstValueTemp + loopIndex);
Emit14Inst( INST_STORE_SCALAR, tempVar, envPtr);
TclEmitOpcode( INST_POP, envPtr);