diff options
author | dgp <dgp@noemail.net> | 2004-10-15 04:01:21 (GMT) |
---|---|---|
committer | dgp <dgp@noemail.net> | 2004-10-15 04:01:21 (GMT) |
commit | 29f16514631731c4f811922e81a6f081144262a1 (patch) | |
tree | a5072bb17646340c040c80672eeba059e8b393f0 /generic/tclMain.c | |
parent | 2a5fa92b06c38549e72eea2fa56a5840cb93c4a0 (diff) | |
download | tcl-29f16514631731c4f811922e81a6f081144262a1.zip tcl-29f16514631731c4f811922e81a6f081144262a1.tar.gz tcl-29f16514631731c4f811922e81a6f081144262a1.tar.bz2 |
* generic/tclBasic.c (Tcl_CreateInterp,Tcl_DeleteInterp,
TclEvalObjvInternal,Tcl_LogCommandInfo,TclAddObjErrorInfo):
* generic/tclCmdAH.c (Tcl_CatchObjCmd):
* generic/tclEvent.c (BgError,ErrAssocData,Tcl_BackgroundError,
HandleBgErrors,BgErrorDeleteProc):
* generic/tclExecute.c (TclCreateExecEnv,TclDeleteExecEnv):
* generic/tclIOUtil.c (comments only):
* generic/tclInt.h (ExecEnv,Interp, ERR_IN_PROGRESS):
* generic/tclInterp.c ([tclInit]):
* generic/tclMain.c (comments only):
* generic/tclNamesp.c
(Tcl_CreateNamespace,Tcl_DeleteNamespace,TclTeardownNamespace):
* generic/tclProc.c (TclUpdateReturnInfo):
* generic/tclResult.c
(Tcl_ResetResult,TclTransferResult):
* generic/tclTrace.c (CallVarTraces):
Reworked management of the "errorInfo" data of an interp.
That information is now primarily stored in a new private
(Tcl_Obj *) field of the Interp struct, rather than using a
global variable ::errorInfo as the primary storage. The
ERR_IN_PROGRESS flag bit value is no longer required to manage
the value in its new location, and is removed. Variable traces
are established to support compatibility for any code expecting
the ::errorInfo variable to hold the information.
***POTENTIAL INCOMPATIBILITY***
Code that sets traces on the ::errorInfo variable may notice a
difference in timing of the firing of those traces. Code that
uses the value ERR_IN_PROGRESS.
FossilOrigin-Name: 264b4df9781eecea408e6cabea5a610cf2d40a34
Diffstat (limited to 'generic/tclMain.c')
-rw-r--r-- | generic/tclMain.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/generic/tclMain.c b/generic/tclMain.c index 1e736fe..238b485 100644 --- a/generic/tclMain.c +++ b/generic/tclMain.c @@ -10,7 +10,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclMain.c,v 1.27 2004/06/11 21:30:08 dgp Exp $ + * RCS: @(#) $Id: tclMain.c,v 1.28 2004/10/15 04:01:32 dgp Exp $ */ #include "tclInt.h" @@ -438,7 +438,8 @@ Tcl_Main(argc, argv, appInitProc) /* * The following statement guarantees that the errorInfo - * variable is set properly. + * variable is set properly when the error has to do with + * the opening or reading of the file. */ Tcl_AddErrorInfo(interp, ""); |