Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: c1ea92758a435d9225b29e2d0cd50c85ad4d87a3
Ticket: 580433ffffffffffffffffffffffffffffffffff
CONST prototypes in 8.4.
User & Date: dgp on 2002-07-16 06:41:59
Changes

  1. icomment:
    Logged In: YES 
    user_id=80530
    
    
    Here's a patch that addresses the issue.
    
    Apply the patch, `make genstubs`, and install.
    The resulting headers will be configurable 
    like so:
    
    #define USE_NON_CONST
    
    will disable all new CONSTs that cause any
    kind of source incompatibility with Tcl 8.3.
    This is the "#define & go" option.
    
    #define USE_COMPAT_CONST
    
    this does what USE_NON_CONST
    used to do -- disables only those new
    CONSTs that would otherwise force
    one to support only 8.4 and up.
    
    With neither of those defined, the
    header will supply the documented
    Tcl 8.4 interfaces.
    
    The patch also CONSTifies a few more
    APIs -- notably the Tcl_CmdProc typedef.
    Now that USE_NON_CONST offers a way
    to completely avoid the changes, there's no
    reason to delay the really tough one.
    
    Note that Tk, like other extensions,
    will need modifications to use the
    features of this patch.
    
    Please try and comment.
    
    
  2. login: "dgp"
  3. mimetype: "text/plain"
  4. username: "dgp"