diff options
author | Miguel Sofer <miguel.sofer@gmail.com> | 2007-11-12 03:38:12 (GMT) |
---|---|---|
committer | Miguel Sofer <miguel.sofer@gmail.com> | 2007-11-12 03:38:12 (GMT) |
commit | 81faf4a2ce359423c0d9e7c6a0980c9e2ac67697 (patch) | |
tree | 63d47006f8a7b704cd406b4de5c9c8ee55d96072 /generic/tclBasic.c | |
parent | cf8a7199f105edc95e59373e098af6eb47d22a16 (diff) | |
download | tcl-81faf4a2ce359423c0d9e7c6a0980c9e2ac67697.zip tcl-81faf4a2ce359423c0d9e7c6a0980c9e2ac67697.tar.gz tcl-81faf4a2ce359423c0d9e7c6a0980c9e2ac67697.tar.bz2 |
* generic/tclBasic.c: New macro TclResetResult, new iPtr flag
* generic/tclExecute.c: bit INTERP_RESULT_UNCLEAN: shortcut for
* generic/tclInt.h: Tcl_ResetResult for the "normal" case:
* generic/tclProc.c: TCL_OK, no return options, no errorCode
* generic/tclResult.c: nor errorInfo, return at normal level.
* generic/tclStubLib.c: [Patch 1830184]
* generic/tclUtil.c:
Diffstat (limited to 'generic/tclBasic.c')
-rw-r--r-- | generic/tclBasic.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/generic/tclBasic.c b/generic/tclBasic.c index 6ec97ef..5b38f5f 100644 --- a/generic/tclBasic.c +++ b/generic/tclBasic.c @@ -14,7 +14,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.279 2007/11/11 19:32:13 msofer Exp $ + * RCS: @(#) $Id: tclBasic.c,v 1.280 2007/11/12 03:38:13 msofer Exp $ */ #include "tclInt.h" @@ -3426,7 +3426,7 @@ TclInterpReady( * any previous error information. */ - Tcl_ResetResult(interp); + TclResetResult(iPtr); /* * If the interpreter has been deleted, return an error. @@ -5398,6 +5398,7 @@ Tcl_AddObjErrorInfo( } Tcl_AppendToObj(iPtr->errorInfo, message, length); } + ((Interp *) interp)->flags |= INTERP_RESULT_UNCLEAN; } /* |