diff options
author | mig <mig> | 2013-01-10 21:18:52 (GMT) |
---|---|---|
committer | mig <mig> | 2013-01-10 21:18:52 (GMT) |
commit | e89dea9b9b819e7b5ddc8d171127b749e237af35 (patch) | |
tree | ba9d20a99fce98d2f9273df62edbb14bab9f55d8 /generic/tclInterp.c | |
parent | 41c09d7b4d37c2b2fc7cec61aaaa3ca59a56a7c5 (diff) | |
download | tcl-e89dea9b9b819e7b5ddc8d171127b749e237af35.zip tcl-e89dea9b9b819e7b5ddc8d171127b749e237af35.tar.gz tcl-e89dea9b9b819e7b5ddc8d171127b749e237af35.tar.bz2 |
tailcall now running in a simpler model, with no eval-flags and no nre-stack rewriting; yieldto also requires one fewer bounce. Mostly from mig-nre-mods
Diffstat (limited to 'generic/tclInterp.c')
-rw-r--r-- | generic/tclInterp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclInterp.c b/generic/tclInterp.c index 0b0f652..2e90caf 100644 --- a/generic/tclInterp.c +++ b/generic/tclInterp.c @@ -1798,9 +1798,9 @@ AliasNRCmd( */ if (isRootEnsemble) { - TclNRDeferCallback(interp, TclClearRootEnsemble, NULL, NULL, NULL, NULL); + TclNRAddCallback(interp, TclClearRootEnsemble, NULL, NULL, NULL, NULL); } - iPtr->evalFlags |= TCL_EVAL_REDIRECT; + TclDeferCallbacks(interp, /* skip tailcalls */ 1); return Tcl_NREvalObj(interp, listPtr, flags); } |