Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: f192a955b33e679dc1ec39a6c05666d6031bc6c1
Ticket: 3009403fffffffffffffffffffffffffffffffff
Signature of Tcl_GetHashKey, Tcl_(Create|Find)HashEntry
User & Date: nijtmans on 2010-05-31 09:49:31
Changes

  1. assignee changed to: "msofer"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    The signatures of those functions use "char *" resp.
    "const char *" in their signatures. However, keys in
    hash tables, can be anything, so using "char" here
    means that type casts are needed in many current
    code using hash tables.
    
    At first sight, this might seem a binary incompatible
    change to change this , because on some platforms
    "char *" does not have the same size as "void *".
    However, those 3 functions are in reality macros
    defined in tcl.h, which eventuall call functions
    whose signature is not changed. So: this
    change is 100% source and binary compatible!
    
    Here is the suggested patch.
    
    Because Tcl_(Create|Find)HashEntry is in the
    stub table, (but cannot actually be used, see
    Bug #3007895), this patch is better used
    in combination with #3007895. Otherwise
    people might wonder why the signatures
    of those stub table entries don't match the
    doc and the macros.
    
  4. foundin changed to: "None"
  5. is_private changed to: "0"
  6. priority changed to: "3 Low"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "nijtmans"
  10. subsystem changed to: "52. Portability Support"
  11. title changed to:
    Signature of Tcl_GetHashKey, Tcl_(Create|Find)HashEntry
    
  12. type changed to: "Patch"