Overview
| Artifact ID: | d6e794824151d116d20e84814a6a2ac7f55449e6 |
|---|---|
| Ticket: | 2529157fffffffffffffffffffffffffffffffff
TclMakeEnsemble and NR-enabled subcommands |
| User & Date: | dgp on 2009-01-22 18:54:32 |
Changes
- assignee changed to: "dkf"
- cmimetype changed to: "text/plain"
- comment changed to:
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. - foundin changed to: "obsolete: 8.6b1.1"
- is_private changed to: "0"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "dgp"
- subsystem changed to: "21. [namespace]"
- title changed to: "TclMakeEnsemble and NR-enabled subcommands"
- type changed to: "Bug"