diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2008-08-23 11:35:43 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2008-08-23 11:35:43 (GMT) |
commit | 8079e10d030cf672bc00e73d705afe52452fae5e (patch) | |
tree | 3a646b9371f8278bc3f7b23158cdc920a334959a /generic/tclNamesp.c | |
parent | 7ca11ee5bdfe73bede408c4e213282430c6575d0 (diff) | |
download | tcl-8079e10d030cf672bc00e73d705afe52452fae5e.zip tcl-8079e10d030cf672bc00e73d705afe52452fae5e.tar.gz tcl-8079e10d030cf672bc00e73d705afe52452fae5e.tar.bz2 |
NRE-enable the ensemble creator (add extra field!)
Arrange for [dict for] to be NRE-enabled when not compiled. [Bug 2017632]
Diffstat (limited to 'generic/tclNamesp.c')
-rw-r--r-- | generic/tclNamesp.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/generic/tclNamesp.c b/generic/tclNamesp.c index 535f8cc..55f9200 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.175 2008/08/20 15:41:25 dkf Exp $ + * RCS: @(#) $Id: tclNamesp.c,v 1.176 2008/08/23 11:35:54 dkf Exp $ */ #include "tclInt.h" @@ -6009,7 +6009,7 @@ TclMakeEnsemble( TclNewObj(mapDict); for (i=0 ; map[i].name != NULL ; i++) { Tcl_Obj *fromObj, *toObj; - Command *cmdPtr; + register Command *cmdPtr; fromObj = Tcl_NewStringObj(map[i].name, -1); TclNewStringObj(toObj, Tcl_DStringValue(&buf), @@ -6019,6 +6019,7 @@ TclMakeEnsemble( cmdPtr = (Command *) Tcl_CreateObjCommand(interp, TclGetString(toObj), map[i].proc, NULL, NULL); cmdPtr->compileProc = map[i].compileProc; + cmdPtr->nreProc = map[i].nreProc; compile |= (map[i].compileProc != NULL); } Tcl_SetEnsembleMappingDict(interp, ensemble, mapDict); |