Overview
| Artifact ID: | 5a56f6b79959301d9838da6af6988669b598f76f |
|---|---|
| Ticket: | 601285ffffffffffffffffffffffffffffffffff
make USE_COMPAT_CONST the default |
| User & Date: | drh on 2002-08-28 13:14:07 |
Changes
- assignee changed to: "dgp"
- cmimetype changed to: "text/plain"
- comment changed to:
The 2002-08-04 patch to TCL has broken backwards compatibility of the C/C++ API. Legacy code will no longer compile without (sometimes major) changes. This may be appropriate for Tcl 9.0, but for Tcl 8.4 I think we should preserve backwards compatibility. I recommend turning on the USE_COMPAT_CONST mode by default in the 8.x series and having a different #define that can enable the new CONST-ifying where desired. When 9.x comes out, then we can go to having incompatible CONST definitions in the API. The specific problem I am having is with the Tcl_CreateCommand() interface, which now requires a "const char**" on the Tcl_CmdProc instead of a "char**". Furthermore, just doing: #define USE_COMPAT_CONST 1 #include <tcl.h> does not solve the problem, since after doing so I am getting complaints about trying to pass a "const char**" in as the 3 argument to Tcl_GetIndexFromObj().
- foundin changed to: "obsolete: 8.4b3"
- priority changed to: "8"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "drh"
- subsystem changed to: "50. Embedding Support"
- title changed to: "C API backwards compatibility broken"
- type changed to: "Bug"