diff options
author | Miguel Sofer <miguel.sofer@gmail.com> | 2009-12-10 16:54:00 (GMT) |
---|---|---|
committer | Miguel Sofer <miguel.sofer@gmail.com> | 2009-12-10 16:54:00 (GMT) |
commit | 5d16655f0b3f57cc706cdc882ed7d0d5edd9c14b (patch) | |
tree | 3468a33458205a5cefa3cf3a41d02627d7a6439d /generic/tclBasic.c | |
parent | b3dcb75ee899428c0b1fae1ae3ddc2770030792b (diff) | |
download | tcl-5d16655f0b3f57cc706cdc882ed7d0d5edd9c14b.zip tcl-5d16655f0b3f57cc706cdc882ed7d0d5edd9c14b.tar.gz tcl-5d16655f0b3f57cc706cdc882ed7d0d5edd9c14b.tar.bz2 |
* generic/tclBasic.c: Reducing the # of moving parts for
* generic/tclExecute.c: coroutines
Diffstat (limited to 'generic/tclBasic.c')
-rw-r--r-- | generic/tclBasic.c | 24 |
1 files changed, 1 insertions, 23 deletions
diff --git a/generic/tclBasic.c b/generic/tclBasic.c index 75e896a..550aaf9 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.424 2009/12/09 17:57:03 msofer Exp $ + * RCS: @(#) $Id: tclBasic.c,v 1.425 2009/12/10 16:54:01 msofer Exp $ */ #include "tclInt.h" @@ -8401,7 +8401,6 @@ static int NRInterpCoroutine(ClientData clientData, Tcl_Obj *const objv[]); static int RewindCoroutine(CoroutineData *corPtr, int result); static void DeleteCoroutine(ClientData clientData); -static void PlugCoroutineChains(CoroutineData *corPtr); static int NRCoroutineExitCallback(ClientData data[], Tcl_Interp *interp, int result); @@ -8578,26 +8577,6 @@ DeleteCoroutine( } } -static void -PlugCoroutineChains( - CoroutineData *corPtr) -{ - /* - * Called to plug the coroutine's running environment into the caller's, - * so that the frame chains are uninterrupted. Note that the levels and - * numlevels may be wrong - we should fix them for the whole chain and not - * just the base! This probably breaks Tip 280 and should be fixed, or at - * least rethought as some of 280's functionality makes doubtful sense in - * presence of coroutines (maybe the cmdFrame should be attached to the - * execEnv and not the interp?) - */ - - corPtr->base.framePtr->callerPtr = corPtr->caller.framePtr; - corPtr->base.framePtr->callerVarPtr = corPtr->caller.varFramePtr; - - corPtr->base.cmdFramePtr->nextPtr = corPtr->caller.cmdFramePtr; -} - static int NRCoroutineCallerCallback( ClientData data[], @@ -8738,7 +8717,6 @@ NRInterpCoroutine( SAVE_CONTEXT(corPtr->caller); RESTORE_CONTEXT(corPtr->running); - PlugCoroutineChains(corPtr); corPtr->auxNumLevels = iPtr->numLevels; iPtr->numLevels += nestNumLevels; |