Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: a76d48f827bcb55b5d287aaec2097ae6ebd765a1
Ticket: 2308236fffffffffffffffffffffffffffffffff
signature of Tcl_HashStats() wrong
User & Date: nijtmans on 2008-11-18 06:32:51
Changes

  1. assignee changed to: "nijtmans"
  2. cmimetype changed to: "text/plain"
  3. 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
    
  4. foundin changed to: "obsolete: 8.6a4"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "nijtmans"
  10. subsystem changed to: "41. Memory Allocation"
  11. title changed to: "signature of Tcl_HashStats() wrong"
  12. type changed to: "Bug"