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)
commit366828918a209f70d7d5d4d842ae100b84bdd27d (patch)
tree38747b6eae9f73159f5fa06f28901d586c45505f /generic/tclExecute.c
parent1195cdbd7703cec023f22231e80b9cb84cddf759 (diff)
downloadtcl-366828918a209f70d7d5d4d842ae100b84bdd27d.zip
tcl-366828918a209f70d7d5d4d842ae100b84bdd27d.tar.gz
tcl-366828918a209f70d7d5d4d842ae100b84bdd27d.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();