Skip to content
Tcl Source Code Check-in [860d062f15]
Login

Check-in [860d062f15]

Overview
Comment: * generic/tclBasic.c (Tcl_DeleteCommandFromToken): One consequence of the NRE rewrite is that there are now situations where a NULL objProc field in a Command struct is perfectly normal. Removed an outdated comment in Tcl_DeleteCommandFromToken that claimed we use (cmdPtr->objPtr == NULL) as a test of command validity. In fact we use (cmdPtr->flags & CMD_IS_DELETED) to perform that test. Also removed the setting to NULL, since any extension following the advice of the old comment is going to be broken by NRE anyway, and needs to shift to flag-based testing (or stop intruding into such internal matters). Part of [Bug 2486550].
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 860d062f15c2b83fa8da02b03390d12999224b34
User & Date: dgp on 2009-01-12 16:50:03.000
Other Links: manifest | tags
Context
2009-01-13
20:30
Move [throw] implementation into C. check-in: edad258731 user: dkf tags: trunk
2009-01-12
16:50
* generic/tclBasic.c (Tcl_DeleteCommandFromToken): One consequence of the NRE rewrit... check-in: 860d062f15 user: dgp tags: trunk
2009-01-09
15:34
* generic/tclStringObj.c (STRING_SIZE): Corrected failure to limit memory allocation... check-in: 3b1f4e78cd user: dgp tags: trunk
Changes