Manifest of check-in
[860d062f15]
- * 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].
by
dgp on
2009-01-12 16:50:03.
B cd3c38f00ada216d7bc93560d3d70012c2918343
C \s\s\s\s\s\s\s\s*\sgeneric/tclBasic.c\s(Tcl_DeleteCommandFromToken):\sOne\sconsequence\n\s\s\s\s\s\s\s\sof\sthe\sNRE\srewrite\sis\sthat\sthere\sare\snow\ssituations\swhere\sa\sNULL\n\s\s\s\s\s\s\s\sobjProc\sfield\sin\sa\sCommand\sstruct\sis\sperfectly\snormal.\s\sRemoved\san\n\s\s\s\s\s\s\s\soutdated\scomment\sin\sTcl_DeleteCommandFromToken\sthat\sclaimed\swe\n\s\s\s\s\s\s\s\suse\s(cmdPtr->objPtr\s==\sNULL)\sas\sa\stest\sof\scommand\svalidity.\s\sIn\sfact\n\s\s\s\s\s\s\s\swe\suse\s(cmdPtr->flags\s&\sCMD_IS_DELETED)\sto\sperform\sthat\stest.\n\s\s\s\s\s\s\s\sAlso\sremoved\sthe\ssetting\sto\sNULL,\ssince\sany\sextension\sfollowing\sthe\n\s\s\s\s\s\s\s\sadvice\sof\sthe\sold\scomment\sis\sgoing\sto\sbe\sbroken\sby\sNRE\sanyway,\sand\n\s\s\s\s\s\s\s\sneeds\sto\sshift\sto\sflag-based\stesting\s(or\sstop\sintruding\sinto\n\s\s\s\s\s\s\s\ssuch\sinternal\smatters).\s\sPart\sof\s[Bug\s2486550].\n
D 2009-01-12T16:50:03
F ChangeLog ebb70d5ae550280133b2161a06cc2408d35508a0
F generic/tclBasic.c 26b41ffab074c3da700c143a2ef5770123e1a4b0
F generic/tclNamesp.c eeef53b9849af1af6568e95ca12faf49c0f057b9
F generic/tclStringObj.c 44f3bc105b208b35fc7c56ede8da5ae066137d9a
F tests/namespace.test d7f41d4a59cdd112d470f119b0b2ef5c58c9d788
P 3b1f4e78cdbd4b276689aeb3985e4752150f40ef
U dgp
Z 5a2a33c1627091418e4980065fa56450