TclMakeEnsemble and NR-enabled subcommands
Closed / Accepted2529157fffffffffffffffffffffffffffffffffCreated 18 years agoUpdated 18 years ago
Descriptionplain2009-01-22 18:54:32
In the NRE world, a Command no longer
needs a non-NULL objProc to be valid.
A non-NULL nreProc is also sufficient.
Starting at line 6220 of tclNamesp.c,
I suggest this alternative:
if (map[i].proc || map[i].nreProc) {
cmdPtr = (Command *)Tcl_NRCreateCommand(interp,
TclGetString(toObj), map[i].proc,
map[i].nreProc, map[i].clientData, NULL);
cmdPtr->compileProc = map[i].compileProc;
if (map[i].compileProc != NULL)
ensembleFlags |= ENSEMBLE_COMPILE;
}
With that change, the routine DictForCmd()
no longer needs to exist. The NRE-enabled
version DictForNRCmd() is sufficient.
dkfplain2009-01-28 23:29:01
allow_comments - 1
Log in (anonymous is fine) to add a comment.