summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2012-10-19 08:48:40 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2012-10-19 08:48:40 (GMT)
commit8f82c0e9f68bc243d27e129a7163a122e5cf254b (patch)
tree672e7a93f21292e522b855cc4ce527ec44446a49 /generic
parenta9804776bdfcb5ebbddabaac09423e630f6c6452 (diff)
parentd769538676cb8b26781e89f7ac1cb5dad28aa999 (diff)
downloadtcl-8f82c0e9f68bc243d27e129a7163a122e5cf254b.zip
tcl-8f82c0e9f68bc243d27e129a7163a122e5cf254b.tar.gz
tcl-8f82c0e9f68bc243d27e129a7163a122e5cf254b.tar.bz2
merge trunk
Diffstat (limited to 'generic')
-rw-r--r--generic/tclBasic.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/tclBasic.c b/generic/tclBasic.c
index 7c08f2f..3848d5b 100644
--- a/generic/tclBasic.c
+++ b/generic/tclBasic.c
@@ -9028,7 +9028,6 @@ TclNRCoroutineObjCmd(
corPtr->running.lineLABCPtr = corPtr->lineLABCPtr;
corPtr->stackLevel = NULL;
corPtr->auxNumLevels = 0;
- iPtr->numLevels--;
/*
* Create the coro's execEnv, switch to it to push the exit and coro
@@ -9047,16 +9046,17 @@ TclNRCoroutineObjCmd(
TclNRAddCallback(interp, NRCoroutineExitCallback, corPtr,
NULL, NULL, NULL);
+ /* insure that the command is looked up in the correct namespace */
iPtr->lookupNsPtr = lookupNsPtr;
Tcl_NREvalObj(interp, Tcl_NewListObj(objc-2, objv+2), 0);
+ iPtr->numLevels--;
SAVE_CONTEXT(corPtr->running);
RESTORE_CONTEXT(corPtr->caller);
iPtr->execEnvPtr = corPtr->callerEEPtr;
/*
- * Now just resume the coroutine. Take care to insure that the command is
- * looked up in the correct namespace.
+ * Now just resume the coroutine.
*/
TclNRAddCallback(interp, NRCoroutineActivateCallback, corPtr,