Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: f90395bf7ad37108df3ecb0a3ab35bdbe90c3ba3
Ticket: 3007895fffffffffffffffffffffffffffffffff
Tcl_(Find|Create)HashEntry stub entries can never be called
User & Date: nijtmans on 2010-05-27 11:00:38
Changes

  1. assignee changed to: "nijtmans"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    From tcl.h we can see that Tcl_(Find|Create)HashEntry
    is a macro, but it is in the stub table as well. The macro
    overrides the definition in tclDecls.h:
    =========================================
    #undef  Tcl_FindHashEntry
    #define Tcl_FindHashEntry(tablePtr, key) ...
    #undef  Tcl_CreateHashEntry
    #define Tcl_CreateHashEntry(tablePtr, key, newPtr) ...
    =========================================
    So, the stub table entries are useless. The only effects
    it has is:
    - Need tricks like #undef, to make tclHash.c and
      tclInitStubs.c compile.
    - Tcl_(Find|Create)HashEntry could be static in tclHash.c,
      but only for the stub table they are made EXTERN
    
    Solution: remove those two functions from the stub
    table, and we can remove all remaining trickery.
    
  4. foundin changed to: "None"
  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: "10. Objects"
  11. title changed to:
    Tcl_(Find|Create)HashEntry stub entries can never be called
    
  12. type changed to: "Bug"