Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 5a56f6b79959301d9838da6af6988669b598f76f
Ticket: 601285ffffffffffffffffffffffffffffffffff
make USE_COMPAT_CONST the default
User & Date: drh on 2002-08-28 13:14:07
Changes

  1. assignee changed to: "dgp"
  2. cmimetype changed to: "text/plain"
  3. 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().
    
  4. foundin changed to: "obsolete: 8.4b3"
  5. priority changed to: "8"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "drh"
  9. subsystem changed to: "50. Embedding Support"
  10. title changed to: "C API backwards compatibility broken"
  11. type changed to: "Bug"