summaryrefslogtreecommitdiffstats
path: root/generic/tclBasic.c
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2016-06-28 22:30:18 (GMT)
committerdgp <dgp@users.sourceforge.net>2016-06-28 22:30:18 (GMT)
commit23a0290873b671c61ba3bc112ffc158fb859667a (patch)
tree9405168e88fadae774bff8ed265edeb3f236bfcc /generic/tclBasic.c
parent00357e27055dd3b3dcc2b853833731d6db76c137 (diff)
parentedc450c53752cf92b00a45883fee2d66a2bde27c (diff)
downloadtcl-23a0290873b671c61ba3bc112ffc158fb859667a.zip
tcl-23a0290873b671c61ba3bc112ffc158fb859667a.tar.gz
tcl-23a0290873b671c61ba3bc112ffc158fb859667a.tar.bz2
Route all ensemble rewrite activity through a few utility routines.
Diffstat (limited to 'generic/tclBasic.c')
-rw-r--r--generic/tclBasic.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/generic/tclBasic.c b/generic/tclBasic.c
index 505f6c2..25f7e78 100644
--- a/generic/tclBasic.c
+++ b/generic/tclBasic.c
@@ -724,9 +724,7 @@ Tcl_CreateInterp(void)
* Initialize the ensemble error message rewriting support.
*/
- iPtr->ensembleRewrite.sourceObjs = NULL;
- iPtr->ensembleRewrite.numRemovedObjs = 0;
- iPtr->ensembleRewrite.numInsertedObjs = 0;
+ TclResetRewriteEnsemble(interp, 1);
/*
* TIP#143: Initialise the resource limit support.
@@ -4221,7 +4219,7 @@ EvalObjvCore(
* TCL_EVAL_INVOKE was not set: clear rewrite rules
*/
- iPtr->ensembleRewrite.sourceObjs = NULL;
+ TclResetRewriteEnsemble(interp, 1);
if (flags & TCL_EVAL_GLOBAL) {
TEOV_SwitchVarFrame(interp);