.
D 2008-04-09T10:39:56
J assignee dgp
J cmimetype text/plain
J comment Further\salong\sthe\slines\sof\sstub\scleanup:\n\nI\ssee\sno\sgood\sreason\swhy\sthe\svarious\sstubs\stables\sshould\snot\sbe\s'static\sconst'\sin\sboth\stcl\sand\stk.\n\n'static'\sbecause\sthe\sonly\saccess\soutside\sof\s*StubInit.c\sthat\swe\sneed\sis\sa\spointer\sto\sthe\smain\sstub\stable\sfor\sthe\sTcl_PkgProvideEx\scall\s(and\sfor\sthe\sinterp\sinit\sin\sthe\scase\sof\stcl);\sthat\spointer\scan\sbe\sexported\sseparately,\sno\sneed\sfor\sall\sthe\sstub\stables\sto\sbe\sglobal\sbecause\sof\sthat.\n\n'const'\sbecause\sthere\sis\sno\sneed\sfor\sthe\sstubs\stables\sto\sbe\smodifiable,\sthey\scan\sbe\sin\sread-only\smemory.\nThe\sonly\suser\sof\swritable\sstubs\stables\sis\sthe\sgross\sTcl_SetNotifier\shack\sthat\srelies\son\soverwriting\sthe\snotifier\sproc\sstub\sentries.\nAs\swe\scannot\sguarantee\sthat\sthe\snotifier\sprocs\sare\sonly\scalled\svia\sstubs\sanyway,\sthe\sbuiltin\snotifiers\salready\sall\shave\sto\scheck\swhether\sthey\sbeen\shooked\sby\scomparing\stheir\sstub\sentry\sagainst\sthe\sdefault,\sso\swe\smight\sas\swell\sdo\saway\swith\sthe\sstubs\stable\smodification\sand\scheck\sfor\shooked\snotifier\svia\sa\sglobal\sset\sby\sTcl_SetNotifier.\n\nPlease\sreview\sthe\sattached\spatches\sthat\smake\sthose\schanges.
J foundin None
J is_private 0
J priority 5\sMedium
J resolution None
J status Open
J submitter das
J subsystem 53.\sConfigure\sand\sBuild\sTools
J title Make\sstubs\stables\sstatic\sconst
J type Patch
K 1938497fffffffffffffffffffffffffffffffff
U das
Z 91c2d42c0b33c67b612583f07248dc2c