diff options
author | dgp <dgp@users.sourceforge.net> | 2013-05-25 03:26:21 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2013-05-25 03:26:21 (GMT) |
commit | 4a770ed0b5648f58f0ba0b07bb73cc904db339e0 (patch) | |
tree | 19f60fc1987887d4da8890f83d68528b3bb2675c /generic/tclCompCmdsGR.c | |
parent | 44c1eaa96ca8158ccbb3acddb45eadfadfb9f07a (diff) | |
download | tcl-4a770ed0b5648f58f0ba0b07bb73cc904db339e0.zip tcl-4a770ed0b5648f58f0ba0b07bb73cc904db339e0.tar.gz tcl-4a770ed0b5648f58f0ba0b07bb73cc904db339e0.tar.bz2 |
Repair some stack depth housekeeping.
Diffstat (limited to 'generic/tclCompCmdsGR.c')
-rw-r--r-- | generic/tclCompCmdsGR.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/generic/tclCompCmdsGR.c b/generic/tclCompCmdsGR.c index 13b874e..c6a01e7 100644 --- a/generic/tclCompCmdsGR.c +++ b/generic/tclCompCmdsGR.c @@ -2375,7 +2375,6 @@ TclCompileReturnCmd( int numWords = parsePtr->numWords; int explicitResult = (0 == (numWords % 2)); int numOptionWords = numWords - 1 - explicitResult; - int savedStackDepth = envPtr->currStackDepth; Tcl_Obj *returnOpts, **objv; Tcl_Token *wordTokenPtr = TokenAfter(parsePtr->tokenPtr); DefineLineInformation; /* TIP #280 */ @@ -2398,7 +2397,6 @@ TclCompileReturnCmd( CompileWord(envPtr, optsTokenPtr, interp, 2); CompileWord(envPtr, msgTokenPtr, interp, 3); TclEmitOpcode(INST_RETURN_STK, envPtr); - envPtr->currStackDepth = savedStackDepth + 1; return TCL_OK; } @@ -2494,7 +2492,6 @@ TclCompileReturnCmd( Tcl_DecrRefCount(returnOpts); TclEmitOpcode(INST_DONE, envPtr); - envPtr->currStackDepth = savedStackDepth; return TCL_OK; } } @@ -2512,7 +2509,6 @@ TclCompileReturnCmd( */ CompileReturnInternal(envPtr, INST_RETURN_IMM, code, level, returnOpts); - envPtr->currStackDepth = savedStackDepth + 1; return TCL_OK; issueRuntimeReturn: @@ -2542,7 +2538,6 @@ TclCompileReturnCmd( */ TclEmitOpcode(INST_RETURN_STK, envPtr); - envPtr->currStackDepth = savedStackDepth + 1; return TCL_OK; } |