diff options
author | Miguel Sofer <miguel.sofer@gmail.com> | 2008-08-25 13:22:01 (GMT) |
---|---|---|
committer | Miguel Sofer <miguel.sofer@gmail.com> | 2008-08-25 13:22:01 (GMT) |
commit | dc5e0c1a99d04f059e8399531b03ebe9654edd8f (patch) | |
tree | 4e7a08a957b59c7962afbdf180eb548407b08ee4 /generic | |
parent | 8b5d2c8a36daec851bfbc261d55c672a7afbc9bd (diff) | |
download | tcl-dc5e0c1a99d04f059e8399531b03ebe9654edd8f.zip tcl-dc5e0c1a99d04f059e8399531b03ebe9654edd8f.tar.gz tcl-dc5e0c1a99d04f059e8399531b03ebe9654edd8f.tar.bz2 |
* generic/tclBasic.c (NRInterpCoroutine): store the caller's
eePtr, stop assuming the coroutine is invoked from the same
execEnv where it was created.
Diffstat (limited to 'generic')
-rw-r--r-- | generic/tclBasic.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclBasic.c b/generic/tclBasic.c index 68b32bb..a710857 100644 --- a/generic/tclBasic.c +++ b/generic/tclBasic.c @@ -16,7 +16,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclBasic.c,v 1.363 2008/08/24 14:38:08 dkf Exp $ + * RCS: @(#) $Id: tclBasic.c,v 1.364 2008/08/25 13:22:04 msofer Exp $ */ #include "tclInt.h" @@ -8260,7 +8260,6 @@ NRCoroutineExitCallback( NRE_ASSERT(TOP_CB(interp) == NULL); NRE_ASSERT(iPtr->execEnvPtr == corPtr->eePtr); NRE_ASSERT(!COR_IS_SUSPENDED(corPtr)); - NRE_ASSERT(TOP_CB(interp) == NULL); NRE_ASSERT((corPtr->callerEEPtr->callbackPtr->procPtr == NRCoroutineCallerCallback) || ((corPtr->callerEEPtr->callbackPtr->procPtr == NRCoroutineFirstCallback) && (corPtr->callerEEPtr->callbackPtr->nextPtr->procPtr == NRCoroutineCallerCallback))); @@ -8326,6 +8325,7 @@ NRInterpCoroutine( TclNRAddCallback(interp, NRCoroutineCallerCallback, corPtr, NULL, NULL, NULL); + corPtr->callerEEPtr = iPtr->execEnvPtr; iPtr->execEnvPtr = corPtr->eePtr; return TclExecuteByteCode(interp, NULL); } |