summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2013-07-08 15:00:02 (GMT)
committerdgp <dgp@users.sourceforge.net>2013-07-08 15:00:02 (GMT)
commitedb7dfc419cc7a8a06ed06669400e1e192a47c09 (patch)
tree293ba3b066324061630513ab676c7b4d556f4cca
parent4e5f3c749a2ed1b7c44cb7d1040ed19b03898b18 (diff)
downloadtcl-edb7dfc419cc7a8a06ed06669400e1e192a47c09.zip
tcl-edb7dfc419cc7a8a06ed06669400e1e192a47c09.tar.gz
tcl-edb7dfc419cc7a8a06ed06669400e1e192a47c09.tar.bz2
Consolidate the StartExpanding() calls.
-rw-r--r--generic/tclCompile.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/generic/tclCompile.c b/generic/tclCompile.c
index 0dc30e2..cbb93d9 100644
--- a/generic/tclCompile.c
+++ b/generic/tclCompile.c
@@ -1819,9 +1819,6 @@ CompileCommandTokens(
envPtr->line = eclPtr->loc[wlineat].line[0];
envPtr->clNext = eclPtr->loc[wlineat].next[0];
- if (expand && !cmdPtr) {
- StartExpanding(envPtr);
- }
if (cmdPtr) {
int savedNumCmds = envPtr->numCommands;
int update = 0;
@@ -1919,11 +1916,10 @@ CompileCommandTokens(
envPtr->line = eclPtr->loc[wlineat].line[0];
envPtr->clNext = eclPtr->loc[wlineat].next[0];
+ }
- /* TODO: Can this happen? If so, is this right? */
- if (expand) {
- StartExpanding(envPtr);
- }
+ if (expand) {
+ StartExpanding(envPtr);
}
/*