Skip to content
Tcl Source Code Artifact [5a56f6b799]
Login

Artifact [5a56f6b799]

Artifact 5a56f6b79959301d9838da6af6988669b598f76f:

Ticket change [5a56f6b799] - New ticket [601285ffffffffff|601285ffff] <i>C API backwards compatibility broken</i>. by drh on 2002-08-28 13:14:07.
D 2002-08-28T13:14:07
J assignee dgp
J cmimetype text/plain
J comment The\s2002-08-04\spatch\sto\sTCL\shas\sbroken\sbackwards\ncompatibility\sof\sthe\sC/C++\sAPI.\s\sLegacy\scode\swill\nno\slonger\scompile\swithout\s(sometimes\smajor)\schanges.\nThis\smay\sbe\sappropriate\sfor\sTcl\s9.0,\sbut\sfor\nTcl\s8.4\sI\sthink\swe\sshould\spreserve\sbackwards\ncompatibility.\n\nI\srecommend\sturning\son\sthe\sUSE_COMPAT_CONST\smode\nby\sdefault\sin\sthe\s8.x\sseries\sand\shaving\sa\s\ndifferent\s#define\sthat\scan\senable\sthe\snew\nCONST-ifying\swhere\sdesired.\sWhen\s9.x\scomes\sout,\nthen\swe\scan\sgo\sto\shaving\sincompatible\sCONST\ndefinitions\sin\sthe\sAPI.\n\nThe\sspecific\sproblem\sI\sam\shaving\sis\swith\sthe\nTcl_CreateCommand()\sinterface,\swhich\snow\srequires\na\s"const\schar**"\son\sthe\sTcl_CmdProc\sinstead\sof\sa\n"char**".\n\nFurthermore,\sjust\sdoing:\n\n\s\s\s#define\sUSE_COMPAT_CONST\s1\n\s\s\s#include\s<tcl.h>\n\ndoes\snot\ssolve\sthe\sproblem,\ssince\safter\sdoing\sso\nI\sam\sgetting\scomplaints\sabout\strying\sto\spass\sa\n"const\schar**"\sin\sas\sthe\s3\sargument\sto\nTcl_GetIndexFromObj().
J foundin obsolete:\s8.4b3
J priority 8
J resolution None
J status Open
J submitter drh
J subsystem 50.\sEmbedding\sSupport
J title C\sAPI\sbackwards\scompatibility\sbroken
J type Bug
K 601285ffffffffffffffffffffffffffffffffff
U drh
Z 6c523d95578ff00d3a7e6e5d1c24ce43