Manifest of check-in
[a69b4832a1]
- * generic/tclBasic.c: Use new interface in Tcl_EvalObjEx so that
the recounting logic of the List internal rep need not be repeated
there. Better encapsulation of internal details.
* generic/tclInt.h: New internal routine TclListObjCopy() used
* generic/tclListObj.c: to efficiently do the equivalent of
[lrange $list 0 end]. After some experience with this, might be
a good candidate for exposure as a public interface. It's useful
for callers of Tcl_ListObjGetElements() who want to control the
ongoing validity of the returned objv pointer.
by
dgp on
2007-02-24 18:55:42.
B 81ea4e1335f3c78465e90ec021758c096ba9b544
C \s\s\s\s\s\s\s*\sgeneric/tclBasic.c:\s\s\sUse\snew\sinterface\sin\sTcl_EvalObjEx\sso\sthat\n\s\s\s\s\s\s\s\sthe\srecounting\slogic\sof\sthe\sList\sinternal\srep\sneed\snot\sbe\srepeated\n\s\s\s\s\s\s\s\sthere.\s\sBetter\sencapsulation\sof\sinternal\sdetails.\n\n\s\s\s\s\s\s\s\s*\sgeneric/tclInt.h:\s\s\s\s\sNew\sinternal\sroutine\sTclListObjCopy()\sused\n\s\s\s\s\s\s\s\s*\sgeneric/tclListObj.c:\sto\sefficiently\sdo\sthe\sequivalent\sof\n\s\s\s\s\s\s\s\s[lrange\s$list\s0\send].\s\sAfter\ssome\sexperience\swith\sthis,\smight\sbe\n\s\s\s\s\s\s\s\sa\sgood\scandidate\sfor\sexposure\sas\sa\spublic\sinterface.\s\sIt's\suseful\n\s\s\s\s\s\s\s\sfor\scallers\sof\sTcl_ListObjGetElements()\swho\swant\sto\scontrol\sthe\n\s\s\s\s\s\s\s\songoing\svalidity\sof\sthe\sreturned\sobjv\spointer.\n
D 2007-02-24T18:55:42
F ChangeLog 3386e9fadd2c775c8af824dee79d54d6b86e2862
F doc/CrtChannel.3 03b339d3140825eae5ea7ed64040821c3a9b97d5
F generic/tcl.decls 33bcb843265360d218824313bf76324494a1ab2f
F generic/tclBasic.c d5be82c461b33df8222d1bbf641f16d13eae0aa8
F generic/tclDecls.h 7041a303a28f7aeb5403bd16828ced5c95a1270d
F generic/tclIO.c 2853c7c88fd2d5a7761d6477d14ceb9a20f83611
F generic/tclInt.h 6646556d0b5e1627b2a956c76cd316b01e9559be
F generic/tclListObj.c 48e8ae942bcd14a8bd41389055c657e4966b8c68
F tests/pkg.test 9457dd9c8cbe0e54ba5e40c3c98eaf51d430943d
F tools/genStubs.tcl b58090465d7d3055e776ede225523507216b4070
P 2a6893c8adb335de3d814cf81779a7af8ef23766
U dgp
Z 2ae7128efec8518b398bd3d3ee6b98a3