Skip to content
Tcl Source Code Artifact [e1d4640c9d]
Login

Artifact [e1d4640c9d]

Artifact e1d4640c9d710b1321ab6661081798b808cf2e17:

Ticket change [e1d4640c9d] - New ticket [520304ffffffffff|520304ffff] <i>Tcl_GetIndexFromObjStruct signature</i>. by jenglish on 2002-02-20 02:56:44.
D 2002-02-20T02:56:44
J assignee nijtmans
J cmimetype text/plain
J comment In\sthe\sTIP27-ification\sof\stclIndexObj.c,\sthe\sthird\nparameter\sof\sTcl_GetIndexFromObjStruct()\schanged\sfrom\sa\n'char\s**'\sto\sa\s'CONST\schar\s**'\s(actually\sa\sCONST84\schar\n**).\n\nIn\sthe\sactual\suse\sof\sthe\sfunction\sthough,\sthe\n'tablePtr'\sargument\stypically\sdoes\snot\spoint\s(directly)\nto\sa\s'char\s*'\s\sor\sa\s'const\schar\s*',\sbut\srather\sto\san\narray\sof\ssome\suser-defined\sstructure\stype\s(whose\sfirst\nmember\sis\sa\s'char\s*'\sor\s'const\schar\s*').\s\n\nSo\sthe\smost\sappropriate\stype\sis\sprobably\s'void\n*structTablePtr'\s(which\sshould\sbe\scast\sto\sa\s'char\s*'\ninternally\sto\sdo\saddress\sarithmetic\sand\sto\sa\s'CONST\nchar\s**'\sto\sextract\sthe\sstring\svalue,\sjust\slike\sit\sdoes\nnow.)\n\nThis\schange\swould\salso\smake\sit\seasier\sto\swrite\nextensions\sthat\scompile\sagainst\spre-\sand\spost-TIP27\nversions\sof\sthe\score\swithout\sresorting\sto\s#ifdefs\sor\n-DUSE_NON_CONST;\sinserting\sa\scast\sto\s(void\s*)\swould\nsuffice\sfor\spre-TIP27\sversions.\n
J foundin None
J priority 5\sMedium
J resolution None
J status Open
J submitter jenglish
J subsystem 13.\sIndex\sObject
J title Tcl_GetIndexFromObjStruct\ssignature
J type Bug
K 520304ffffffffffffffffffffffffffffffffff
U jenglish
Z ed2d7949b5ff89bcd9a9f5c0c9a16f40