diff options
author | dgp <dgp@users.sourceforge.net> | 2007-06-05 17:57:05 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2007-06-05 17:57:05 (GMT) |
commit | 0ce2a2cb2fb98447e3060196f2415dd267330e0d (patch) | |
tree | baea8961dd7792cf7300ab1799771f4ebdc7ad72 /generic/tclNamesp.c | |
parent | 68919c24042c4dd2b585f557d98d6bea70fa1cf4 (diff) | |
download | tcl-0ce2a2cb2fb98447e3060196f2415dd267330e0d.zip tcl-0ce2a2cb2fb98447e3060196f2415dd267330e0d.tar.gz tcl-0ce2a2cb2fb98447e3060196f2415dd267330e0d.tar.bz2 |
* generic/tclBasic.c: Added interp flag value ERR_LEGACY_COPY to
* generic/tclInt.h: control the timing with which the global
* generic/tclNamesp.c: variables ::errorCode and ::errorInfo get
* generic/tclProc.c: updated after an error. This keeps more
* generic/tclResult.c: precise compatibility with Tcl 8.4.
* tests/result.test (result-6.2): [Bug 1649062]
Diffstat (limited to 'generic/tclNamesp.c')
-rw-r--r-- | generic/tclNamesp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/tclNamesp.c b/generic/tclNamesp.c index c090271..2d5d30b 100644 --- a/generic/tclNamesp.c +++ b/generic/tclNamesp.c @@ -22,7 +22,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclNamesp.c,v 1.134 2007/05/07 19:45:33 dgp Exp $ + * RCS: @(#) $Id: tclNamesp.c,v 1.135 2007/06/05 17:57:07 dgp Exp $ */ #include "tclInt.h" @@ -622,7 +622,7 @@ ErrorCodeRead( { Interp *iPtr = (Interp *)interp; - if (Tcl_InterpDeleted(interp)) { + if (Tcl_InterpDeleted(interp) || !(iPtr->flags & ERR_LEGACY_COPY)) { return NULL; } if (iPtr->errorCode) { @@ -696,7 +696,7 @@ ErrorInfoRead( { Interp *iPtr = (Interp *)interp; - if (Tcl_InterpDeleted(interp)) { + if (Tcl_InterpDeleted(interp) || !(iPtr->flags & ERR_LEGACY_COPY)) { return NULL; } if (iPtr->errorInfo) { |