Overview
| Artifact ID: | a455a71cb8238b391697491a82d34b096110fd7d3b974b31573ef8d08c739dff |
|---|---|
| Ticket: | 0b9200888e2fd6dd14fee5fc8471f6e8cb864a96
TIP #660 breaks TIP #628/#630 |
| User & Date: | jan.nijtmans on 2023-04-11 22:49:40 |
Changes
- assignee changed to: "nobody"
- closer changed to: "nobody"
- cmimetype changed to: "text/x-fossil-wiki"
- 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 - is_private changed to: "0"
- login: "jan.nijtmans"
- priority changed to: "5 Medium"
- private_contact changed to: "0c50e5320704d174412e57b873d8932de15303e0"
- resolution changed to: "None"
- severity changed to: "Severe"
- status changed to: "Open"
- submitter changed to: "jan.nijtmans"
- subsystem changed to: "- New Builtin Commands"
- title changed to: "TIP #660 breaks TIP #628/#630"
- type changed to: "Bug"