summaryrefslogtreecommitdiffstats
path: root/generic/tclEvent.c
diff options
context:
space:
mode:
authordgp@users.sourceforge.net <dgp>2004-10-19 21:53:47 (GMT)
committerdgp@users.sourceforge.net <dgp>2004-10-19 21:53:47 (GMT)
commit00bc9ca39742cdd8a6a08feb0d41db83aae567a6 (patch)
treeb5e581d2da471e1291e0dcb7cd21a9c3d2ff09d3 /generic/tclEvent.c
parent766f8bf047ea0627489e3d98f5536175cf42f81b (diff)
downloadtcl-00bc9ca39742cdd8a6a08feb0d41db83aae567a6.zip
tcl-00bc9ca39742cdd8a6a08feb0d41db83aae567a6.tar.gz
tcl-00bc9ca39742cdd8a6a08feb0d41db83aae567a6.tar.bz2
* generic/tclInt.h (Tcl*InterpState): New internal routines
* generic/tclResult.c (Tcl*InterpState): TclSaveInterpState, TclRestoreInterpState, and TclDiscardInterpState are superior replacements for Tcl_(Save|Restore|Discard)Result. Intent is that these routines will be converted to public routines after TIP approval. * generic/tclBasic.c (TclEvalObjvInternal): * generic/tclDictObj.c (DictUpdateCmd, DictWithCmd): * generic/tclIOGT.c (ExecuteCallback): * generic/tclTrace.c (Trace*Proc,TclCheck*Traces,TclCallVarTraces): Callers of Tcl_*Result updated to call the new routines. The calls were relocated in several cases to perform save/restore operations only when needed. * generic/tclEvent.c (HandleBgErrors): * generic/tclFCmd.c (CopyRenameOneFile): Calls to Tcl_*Result that were eliminated because they appeared to serve no useful purpose, typically saving/restoring an error message, only to throw it away.
Diffstat (limited to 'generic/tclEvent.c')
-rw-r--r--generic/tclEvent.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/generic/tclEvent.c b/generic/tclEvent.c
index 5ef1533..9eb195f 100644
--- a/generic/tclEvent.c
+++ b/generic/tclEvent.c
@@ -12,7 +12,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclEvent.c,v 1.48 2004/10/15 04:01:29 dgp Exp $
+ * RCS: @(#) $Id: tclEvent.c,v 1.49 2004/10/19 21:54:06 dgp Exp $
*/
#include "tclInt.h"
@@ -291,11 +291,8 @@ HandleBgErrors(clientData)
*/
if (Tcl_IsSafe(interp)) {
- Tcl_SavedResult save;
-
- Tcl_SaveResult(interp, &save);
+ Tcl_ResetResult(interp);
TclObjInvoke(interp, 2, objv, TCL_INVOKE_HIDDEN);
- Tcl_RestoreResult(interp, &save);
} else {
/*