summaryrefslogtreecommitdiffstats
path: root/generic/tclExecute.c
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2016-05-24 19:28:50 (GMT)
committerdgp <dgp@users.sourceforge.net>2016-05-24 19:28:50 (GMT)
commit6f3bd38c61b5deddb1bcd376c798ca8aa12351a7 (patch)
tree38747b6eae9f73159f5fa06f28901d586c45505f /generic/tclExecute.c
parentca66ff4b66c7c2c37cf104ead999ae2fc8c85747 (diff)
downloadtcl-6f3bd38c61b5deddb1bcd376c798ca8aa12351a7.zip
tcl-6f3bd38c61b5deddb1bcd376c798ca8aa12351a7.tar.gz
tcl-6f3bd38c61b5deddb1bcd376c798ca8aa12351a7.tar.bz2
Appears that the TclInitRewriteEnsemble() routine was created with an intent
to refactor, but never actually got used. Work on continuing that effort.
Diffstat (limited to 'generic/tclExecute.c')
-rw-r--r--generic/tclExecute.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/generic/tclExecute.c b/generic/tclExecute.c
index d4077f5..80598c1 100644
--- a/generic/tclExecute.c
+++ b/generic/tclExecute.c
@@ -3172,9 +3172,11 @@ TEBCresume(
if (iPtr->flags & INTERP_DEBUG_FRAME) {
ArgumentBCEnter(interp, codePtr, TD, pc, objc, objv);
}
- iPtr->ensembleRewrite.sourceObjs = objv;
- iPtr->ensembleRewrite.numRemovedObjs = opnd;
- iPtr->ensembleRewrite.numInsertedObjs = 1;
+
+ if (!TclInitRewriteEnsemble(interp, opnd, 1, objv)) {
+//fprintf(stdout, "INVOKE: '%s'\n", Tcl_GetString(objPtr)); fflush(stdout);
+ Tcl_Panic("INST_INVOKE_REPLACE is not ensemble root");
+ }
DECACHE_STACK_INFO();
pc += 6;
TEBC_YIELD();