Overview
| Artifact ID: | a76d48f827bcb55b5d287aaec2097ae6ebd765a1 |
|---|---|
| Ticket: | 2308236fffffffffffffffffffffffffffffffff
signature of Tcl_HashStats() wrong |
| User & Date: | nijtmans on 2008-11-18 06:32:51 |
Changes
- assignee changed to: "nijtmans"
- cmimetype changed to: "text/plain"
- comment changed to:
Although the documentation states that this function returns a malloc'ed string, it's return type was const char*. This means that, since Tcl 8.4, users are forced to use an unsafe type cast to used it: char *s = (char *)Tcl_HashStats(....) .... ckfree(s); Fixing the signature has the effect that this type cast is no longer neccessary, so it is fully source and binary compatible. The signature is wrong since the implementation of TIP #27 in Tcl 8.4 - foundin changed to: "obsolete: 8.6a4"
- is_private changed to: "0"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "nijtmans"
- subsystem changed to: "41. Memory Allocation"
- title changed to: "signature of Tcl_HashStats() wrong"
- type changed to: "Bug"