.
D 2010-05-06T14:37:11
J assignee nijtmans
J cmimetype text/plain
J comment Since\sTcl\s8.6,\sall\sstub\spointers\sbecame\s"const".\sThe\nTcl_Pkg*\sfunctions\shave\sa\sClientData\sparameter\sfor\nregistering\sthem.\sBecause\sthis\sparameter\sis\snot\sconst,\nit\smeans\sthat\sin\stclBasic.c,\stclTomMathInterface.c,\ntclStubLib.c,\sand\stclTomMathStubLib.c\stype\scasts\nneed\sto\sbe\sused\sin\sorder\sto\ssilence\sthe\scompiler\nwarning.\sThere\smust\sbe\sa\sbetter\sway.\n\nTherefore,\sI\ssuggest\sto\schange\sthe\sAPI\sof\sthe\nfollowing\s4\sfunctions:\n\s\s\s\sTcl_PkgProvideEx\n\s\s\s\sTcl_PkgRequireEx\n\s\s\s\sTcl_PkgPresentEx\n\s\s\s\sTcl_PkgRequireProc\nso\sthat\sthey\scan\sbe\sused\swithout\ntype\scasts\sin\sthis\ssituation.\n\nAttached\spatch\sshows\show\sto\sdo\sthat.\sThis\nis\s100%\ssource\sand\sbinary\scompatible.\sThe\nreal\schanges\sare\sonly\sin\stcl.decls\s(and\sthe\ngenerate\stclDecls.h)\sand\stclPkg.c.\sThe\nother\sfiles\sdon't\sneed\sto\sbe\smodified,\sbut\nare\sjust\sa\sdemonstration\show\sthey\ncan\sbe\scleaned\sup\swithout\stype\ncasts\safter\sthe\ssignature\schange.\n\ndoc\supdate\sis\sin\sthe\spatch\sas\swell.
J foundin None
J is_private 0
J priority 5\sMedium
J resolution None
J status Open
J submitter nijtmans
J subsystem 39.\sPackage\sManager
J title many\stype\scasts\sneeded\swhen\susing\sTcl_Pkg*\sAPI
J type Patch
K 2997642fffffffffffffffffffffffffffffffff
U nijtmans
Z 83ab953bcba394632f54d0ad7bccfbc4