diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2013-01-03 10:25:23 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2013-01-03 10:25:23 (GMT) |
commit | 6470859885f92e276993f88322b090eca3cb24f2 (patch) | |
tree | e893b3dd616ac686c87b773ce210095f78318130 /generic/tclEnsemble.c | |
parent | e82d1f6be8957bb381a19b3663a3e0c34c1480b3 (diff) | |
parent | d5dacc899b5d76aba7cbc9caaadc6a63b51ee98b (diff) | |
download | tcl-6470859885f92e276993f88322b090eca3cb24f2.zip tcl-6470859885f92e276993f88322b090eca3cb24f2.tar.gz tcl-6470859885f92e276993f88322b090eca3cb24f2.tar.bz2 |
merge trunk
Diffstat (limited to 'generic/tclEnsemble.c')
-rw-r--r-- | generic/tclEnsemble.c | 16 |
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; } |