summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormig <mig>2013-12-05 16:01:16 (GMT)
committermig <mig>2013-12-05 16:01:16 (GMT)
commitd4c2352c272018c182366cf571aeaaff813456e7 (patch)
tree3fb8b8cbefb8760f02af6f431e71d425015690e0
parentfe466d7e44e868229e27ec19e88092f804b18e08 (diff)
downloadtcl-d4c2352c272018c182366cf571aeaaff813456e7.zip
tcl-d4c2352c272018c182366cf571aeaaff813456e7.tar.gz
tcl-d4c2352c272018c182366cf571aeaaff813456e7.tar.bz2
add comments on field "misuse"
-rw-r--r--generic/tclCompCmds.c2
-rw-r--r--generic/tclExecute.c1
2 files changed, 2 insertions, 1 deletions
diff --git a/generic/tclCompCmds.c b/generic/tclCompCmds.c
index e934d92..78c6c5a 100644
--- a/generic/tclCompCmds.c
+++ b/generic/tclCompCmds.c
@@ -2677,7 +2677,7 @@ CompileEachloopCmd(
/*
* Set the jumpback distance from INST_FOREACH_STEP to the start of the
- * body's code
+ * body's code. Misuse loopCtTemp for storing the jump size.
*/
jumpBackOffset = envPtr->exceptArrayPtr[range].continueOffset -
diff --git a/generic/tclExecute.c b/generic/tclExecute.c
index 32b64a2..191a897 100644
--- a/generic/tclExecute.c
+++ b/generic/tclExecute.c
@@ -6331,6 +6331,7 @@ TEBCresume(
}
listTmpDepth--;
}
+ /* loopCtTemp being 'misused' for storing the jump size */
NEXT_INST_F(infoPtr->loopCtTemp, 0, 0);
}