Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: a455a71cb8238b391697491a82d34b096110fd7d3b974b31573ef8d08c739dff
Ticket: 0b9200888e2fd6dd14fee5fc8471f6e8cb864a96
TIP #660 breaks TIP #628/#630
User & Date: jan.nijtmans on 2023-04-11 22:49:40
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-fossil-wiki"
  4. comment changed to:
    A testcase showing the problem is pkgt.c, in the unix/dltest directory
    
    This function does:
    <pre>
        Tcl_CreateObjCommand2(interp, "pkgt_eq", Pkgt_EqObjCmd2, NULL, NULL);
        Tcl_CreateObjTrace2(interp, 0, 0, TraceProc2, NULL, NULL);
    </pre>
    
    The "2" API is supposed to register 64-bit capable commands/traces. But with TIP #660, the types are using Tcl_Size, which is "int" when compiled for Tcl 8.7. That doesn't match the 8.7 version of tcl.h. So, the functions registered have the wrong signature then. Solution: the typedefs for Tcl_CmdObjTraceProc2 and Tcl_ObjCmdProc2 should use ptrdiff_t, not Tcl_Size
    
  5. is_private changed to: "0"
  6. login: "jan.nijtmans"
  7. priority changed to: "5 Medium"
  8. private_contact changed to: "0c50e5320704d174412e57b873d8932de15303e0"
  9. resolution changed to: "None"
  10. severity changed to: "Severe"
  11. status changed to: "Open"
  12. submitter changed to: "jan.nijtmans"
  13. subsystem changed to: "- New Builtin Commands"
  14. title changed to: "TIP #660 breaks TIP #628/#630"
  15. type changed to: "Bug"