diff options
author | Miguel Sofer <miguel.sofer@gmail.com> | 2009-03-21 12:24:48 (GMT) |
---|---|---|
committer | Miguel Sofer <miguel.sofer@gmail.com> | 2009-03-21 12:24:48 (GMT) |
commit | 24ad5055202aab332c748c20e2bd0471e3aab234 (patch) | |
tree | bb3dee3248aee3a5159b68b525c8d1d998b8a2b2 /generic/tclNamesp.c | |
parent | 260a0df5b742697276b762bcddd34c141aed9942 (diff) | |
download | tcl-24ad5055202aab332c748c20e2bd0471e3aab234.zip tcl-24ad5055202aab332c748c20e2bd0471e3aab234.tar.gz tcl-24ad5055202aab332c748c20e2bd0471e3aab234.tar.bz2 |
* generic/tclBasic.c: fixed "leaks" in aliases, imports and
* generic/tclInt.h: ensembles. Only remaining known leak
* generic/tclInterp.c: is in ensemble unknown dispatch (as it
* generic/tclNamesp.c: not NR-enabled)
* tests/tailcall.test:
Diffstat (limited to 'generic/tclNamesp.c')
-rw-r--r-- | generic/tclNamesp.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/generic/tclNamesp.c b/generic/tclNamesp.c index 8caf7db..ff0bf99 100644 --- a/generic/tclNamesp.c +++ b/generic/tclNamesp.c @@ -23,7 +23,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.190 2009/03/19 23:31:37 msofer Exp $ + * RCS: @(#) $Id: tclNamesp.c,v 1.191 2009/03/21 12:24:49 msofer Exp $ */ #include "tclInt.h" @@ -1938,6 +1938,7 @@ InvokeImportedNRCmd( ImportedCmdData *dataPtr = clientData; Command *realCmdPtr = dataPtr->realCmdPtr; + ((Interp *)interp)->evalFlags |= TCL_EVAL_REDIRECT; return Tcl_NRCmdSwap(interp, (Tcl_Command) realCmdPtr, objc, objv, 0); } @@ -6591,6 +6592,7 @@ NsEnsembleImplementationCmdNR( * Hand off to the target command. */ + iPtr->evalFlags |= TCL_EVAL_REDIRECT; return Tcl_NREvalObj(interp, copyPtr, TCL_EVAL_INVOKE); } @@ -6726,6 +6728,7 @@ EnsembleUnknownCallback( */ Tcl_Preserve(ensemblePtr); + ((Interp *)interp)->evalFlags |= TCL_EVAL_REDIRECT; result = Tcl_EvalObjv(interp, paramc, paramv, 0); if ((result == TCL_OK) && (ensemblePtr->flags & ENS_DEAD)) { Tcl_SetResult(interp, |