summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2016-06-10 13:43:13 (GMT)
committerdgp <dgp@users.sourceforge.net>2016-06-10 13:43:13 (GMT)
commitb453d7479061b4f7fee8c55e790deab9f3e16de0 (patch)
treea948f8dd2867b9fef471ac6b545e7707bce8fbb7
parent5fee89b1cba2dec073fe621b65f34c480fe15483 (diff)
downloadtcl-b453d7479061b4f7fee8c55e790deab9f3e16de0.zip
tcl-b453d7479061b4f7fee8c55e790deab9f3e16de0.tar.gz
tcl-b453d7479061b4f7fee8c55e790deab9f3e16de0.tar.bz2
Corrects reported bug, but makes many tests fail. Something subtle about
what we should expect when recording the line of a command that isn't known until runtime.
-rw-r--r--generic/tclCompile.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/generic/tclCompile.c b/generic/tclCompile.c
index 5030f89..8cdd9d2 100644
--- a/generic/tclCompile.c
+++ b/generic/tclCompile.c
@@ -2602,8 +2602,12 @@ EnterCmdWordData(
TclAdvanceLines (&wordLine, last, tokenPtr->start);
TclAdvanceContinuations (&wordLine, &wordNext,
tokenPtr->start - envPtr->source);
+#if 0
wwlines[wordIdx] =
(TclWordKnownAtCompileTime(tokenPtr, NULL) ? wordLine : -1);
+#else
+ wwlines[wordIdx] = wordLine;
+#endif
ePtr->line[wordIdx] = wordLine;
ePtr->next[wordIdx] = wordNext;
last = tokenPtr->start;