diff options
author | dgp <dgp@users.sourceforge.net> | 2013-07-15 17:07:51 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2013-07-15 17:07:51 (GMT) |
commit | a398b126a43e46efa6d6044b0bcf57a4b9385c4e (patch) | |
tree | 90b87619753141befd59aa2e3dc83c3448bc85ce /generic/tclCompCmdsSZ.c | |
parent | 5e4c2308ce99d3d1349d0defd0585b05cd11e3fe (diff) | |
download | tcl-a398b126a43e46efa6d6044b0bcf57a4b9385c4e.zip tcl-a398b126a43e46efa6d6044b0bcf57a4b9385c4e.tar.gz tcl-a398b126a43e46efa6d6044b0bcf57a4b9385c4e.tar.bz2 |
Prefer CompileWord() over CompileTokens() when possible.
Diffstat (limited to 'generic/tclCompCmdsSZ.c')
-rw-r--r-- | generic/tclCompCmdsSZ.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/generic/tclCompCmdsSZ.c b/generic/tclCompCmdsSZ.c index 19e636d..3a91c83 100644 --- a/generic/tclCompCmdsSZ.c +++ b/generic/tclCompCmdsSZ.c @@ -1282,8 +1282,7 @@ TclCompileSwitchCmd( */ /* Both methods push the value to match against onto the stack. */ - SetLineInformation(valueIndex); - CompileTokens(envPtr, valueTokenPtr, interp); + CompileWord(envPtr, valueTokenPtr, interp, valueIndex); if (mode == Switch_Exact) { IssueSwitchJumpTable(interp, envPtr, valueIndex, numWords, bodyToken, |