diff options
author | Miguel Sofer <miguel.sofer@gmail.com> | 2004-05-16 20:23:00 (GMT) |
---|---|---|
committer | Miguel Sofer <miguel.sofer@gmail.com> | 2004-05-16 20:23:00 (GMT) |
commit | 761df1dd737fda3e0bda124509e81dd92ff72e84 (patch) | |
tree | 0f8f6d076a0483dc37aec2b6f8ce11c3f0e4fb67 /generic/tclBasic.c | |
parent | a76b6923bb681fdc5ed9f24e8ab74c40dfd2fca9 (diff) | |
download | tcl-761df1dd737fda3e0bda124509e81dd92ff72e84.zip tcl-761df1dd737fda3e0bda124509e81dd92ff72e84.tar.gz tcl-761df1dd737fda3e0bda124509e81dd92ff72e84.tar.bz2 |
* generic/tclBasic.c (Tcl_DeleteInterp):
* generic/tclExecute.c (INST_START_CMD): interp deletion now
modifies the compileEpoch, eliminating the need for the check for
interp deletion in INST_START_CMD.
Diffstat (limited to 'generic/tclBasic.c')
-rw-r--r-- | generic/tclBasic.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/generic/tclBasic.c b/generic/tclBasic.c index 71f377d..3054f98 100644 --- a/generic/tclBasic.c +++ b/generic/tclBasic.c @@ -13,7 +13,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.100 2004/05/13 12:59:21 dkf Exp $ + * RCS: @(#) $Id: tclBasic.c,v 1.101 2004/05/16 20:23:01 msofer Exp $ */ #include "tclInt.h" @@ -918,9 +918,12 @@ Tcl_DeleteInterp(interp) /* * Mark the interpreter as deleted. No further evals will be allowed. + * Increase the compileEpoch as a signal to compiled bytecodes. */ iPtr->flags |= DELETED; + iPtr->compileEpoch++; + /* * Ensure that the interpreter is eventually deleted. |