summaryrefslogtreecommitdiffstats
path: root/generic/tclEnsemble.c
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2013-01-03 10:25:23 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2013-01-03 10:25:23 (GMT)
commit6470859885f92e276993f88322b090eca3cb24f2 (patch)
treee893b3dd616ac686c87b773ce210095f78318130 /generic/tclEnsemble.c
parente82d1f6be8957bb381a19b3663a3e0c34c1480b3 (diff)
parentd5dacc899b5d76aba7cbc9caaadc6a63b51ee98b (diff)
downloadtcl-6470859885f92e276993f88322b090eca3cb24f2.zip
tcl-6470859885f92e276993f88322b090eca3cb24f2.tar.gz
tcl-6470859885f92e276993f88322b090eca3cb24f2.tar.bz2
merge trunk
Diffstat (limited to 'generic/tclEnsemble.c')
-rw-r--r--generic/tclEnsemble.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/generic/tclEnsemble.c b/generic/tclEnsemble.c
index d12ffe6..0cad216 100644
--- a/generic/tclEnsemble.c
+++ b/generic/tclEnsemble.c
@@ -1582,21 +1582,23 @@ TclMakeEnsemble(
NULL);
}
cmdPtr->compileProc = map[i].compileProc;
- if (map[i].compileProc != NULL) {
- ensembleFlags |= ENSEMBLE_COMPILE;
- }
}
}
Tcl_SetEnsembleMappingDict(interp, ensemble, mapDict);
- if (ensembleFlags & ENSEMBLE_COMPILE) {
- Tcl_SetEnsembleFlags(interp, ensemble, ensembleFlags);
- }
+
+ /*
+ * Switch on compilation always for core ensembles now that we can do
+ * nice bytecode things with them.
+ */
+
+ Tcl_SetEnsembleFlags(interp, ensemble,
+ ensembleFlags | ENSEMBLE_COMPILE);
}
Tcl_DStringFree(&buf);
Tcl_DStringFree(&hiddenBuf);
if (nameParts != NULL) {
- Tcl_Free((char *) nameParts);
+ ckfree((char *) nameParts);
}
return ensemble;
}