diff options
| author | dgp@users.sourceforge.net <dgp> | 2005-06-01 21:38:34 (GMT) |
|---|---|---|
| committer | dgp@users.sourceforge.net <dgp> | 2005-06-01 21:38:34 (GMT) |
| commit | e75a321f41d4b5f8af52bed331f7fb57e7e3c23a (patch) | |
| tree | f64716a58409f5582716350a70767ed3630c9cc7 /generic/tclResult.c | |
| parent | cf2c75d08d70ae59c31011e6182d503f55f01be4 (diff) | |
| download | tcl-e75a321f41d4b5f8af52bed331f7fb57e7e3c23a.zip tcl-e75a321f41d4b5f8af52bed331f7fb57e7e3c23a.tar.gz tcl-e75a321f41d4b5f8af52bed331f7fb57e7e3c23a.tar.bz2 | |
* generic/tclBasic.c: For compatibility with earlier Tcl releases,
* generic/tclResult.c: when a command procedure simply does a
* generic/tclTest.c: "return TCL_RETURN;" we must interpret that
* tests/result.test: the same as
"return Tcl_SetReturnOptions(interp, Tcl_NewObj());" [Bug 1209759].
Diffstat (limited to 'generic/tclResult.c')
| -rw-r--r-- | generic/tclResult.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/generic/tclResult.c b/generic/tclResult.c index 770d7cb..1c4438d 100644 --- a/generic/tclResult.c +++ b/generic/tclResult.c @@ -8,7 +8,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclResult.c,v 1.25 2005/05/10 18:34:48 kennykb Exp $ + * RCS: @(#) $Id: tclResult.c,v 1.26 2005/06/01 21:38:41 dgp Exp $ */ #include "tclInt.h" @@ -927,6 +927,8 @@ Tcl_ResetResult(interp) Tcl_DecrRefCount(iPtr->errorInfo); iPtr->errorInfo = NULL; } + iPtr->returnLevel = 1; + iPtr->returnCode = TCL_OK; if (iPtr->returnOpts) { Tcl_DecrRefCount(iPtr->returnOpts); iPtr->returnOpts = NULL; |
