summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authormig <mig>2012-11-10 17:08:33 (GMT)
committermig <mig>2012-11-10 17:08:33 (GMT)
commit16057dd18ea93316b53bdd6dd940970d1d624687 (patch)
treeb6c5830b82096065d98f9c94825ca3f90b8c09d2 /generic
parentd677e8a8ae7188b1aebd47c054633273808d5764 (diff)
downloadtcl-16057dd18ea93316b53bdd6dd940970d1d624687.zip
tcl-16057dd18ea93316b53bdd6dd940970d1d624687.tar.gz
tcl-16057dd18ea93316b53bdd6dd940970d1d624687.tar.bz2
re-enable bcc-tailcall, after fixing an infinite loop in the TCL_COMPILE_DEBUG mode
Diffstat (limited to 'generic')
-rw-r--r--generic/tclBasic.c2
-rw-r--r--generic/tclExecute.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclBasic.c b/generic/tclBasic.c
index cbdbe87..bce6479 100644
--- a/generic/tclBasic.c
+++ b/generic/tclBasic.c
@@ -247,7 +247,7 @@ static const CmdInfo builtInCmds[] = {
{"split", Tcl_SplitObjCmd, NULL, NULL, 1},
{"subst", Tcl_SubstObjCmd, TclCompileSubstCmd, TclNRSubstObjCmd, 1},
{"switch", Tcl_SwitchObjCmd, TclCompileSwitchCmd, TclNRSwitchObjCmd, 1},
- {"tailcall", NULL, NULL, TclNRTailcallObjCmd, 1},
+ {"tailcall", NULL, TclCompileTailcallCmd, TclNRTailcallObjCmd, 1},
{"throw", Tcl_ThrowObjCmd, TclCompileThrowCmd, NULL, 1},
{"trace", Tcl_TraceObjCmd, NULL, NULL, 1},
{"try", Tcl_TryObjCmd, TclCompileTryCmd, TclNRTryObjCmd, 1},
diff --git a/generic/tclExecute.c b/generic/tclExecute.c
index caf35ba..cf8f9e7 100644
--- a/generic/tclExecute.c
+++ b/generic/tclExecute.c
@@ -2393,7 +2393,7 @@ TEBCresume(
register int i;
TRACE(("%d [", opnd));
- for (i=opnd-1 ; i>=0 ; i++) {
+ for (i=opnd-1 ; i>=0 ; i--) {
TRACE_APPEND(("\"%.30s\"", O2S(OBJ_AT_DEPTH(i))));
if (i > 0) {
TRACE_APPEND((" "));