Artifacts Associated With Ticket 3007895fffffffff
Ticket change [f90395bf7a] (rid 91639) by nijtmans on 2010-05-27 11:00:38:
- assignee initialized to: "nijtmans"
- cmimetype initialized to: "text/plain"
- comment initialized 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.
- foundin initialized to: "None"
- is_private initialized to: "0"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "nijtmans"
- subsystem initialized to: "10. Objects"
- title initialized to:
Tcl_(Find|Create)HashEntry stub entries can never be called
- type initialized to: "Bug"
Ticket change [4f0b034791] (rid 125755) by nijtmans on 2010-05-27 18:02:30:
- icomment:
File Added - 375339: hash.patch
- login: "nijtmans"
- mimetype: "text/plain"
- username: "nijtmans"
- icomment:
Ticket change [c226585df3] (rid 111444) by nijtmans on 2010-05-27 18:05:45:
- icomment:
Another benifit: Making Tcl_(Find|Create)HashEntry static means that the dynamic loader has two less symbols which need to be resolved.
- login: "nijtmans"
- mimetype: "text/plain"
- username: "nijtmans"
- icomment:
Ticket change [3be3e31904] (rid 112827) by dkf on 2010-05-27 20:44:35:
- assignee changed to: "msofer"
- icomment:
Just leave it alone, Jan. You're not the area maintainer.
- login: "dkf"
- mimetype: "text/plain"
- priority changed to: "4"
- username: "dkf"
Ticket change [cb2b386b9a] (rid 95477) by nijtmans on 2010-05-28 17:22:21:
- icomment:
OK, Miguel?
- login: "nijtmans"
- mimetype: "text/plain"
- username: "nijtmans"
- icomment:
Ticket change [5b9e74571d] (rid 118363) by nijtmans on 2010-08-16 10:07:14:
- assignee changed to: "dgp"
Ticket change [932878ab2b] (rid 105768) by dgp on 2010-08-16 21:52:11:
- priority changed to: "9 Immediate"
Ticket change [897d3d5e8f] (rid 132032) by nijtmans on 2010-08-16 23:24:40:
- icomment:
Why priority 9? If it's only because you want this to be on the top of your list, OK! Besides that, it's only about the removal of dead code, so I don't see the need for prio 9.
- login: "nijtmans"
- mimetype: "text/plain"
- username: "nijtmans"
- icomment:
Ticket change [cf4da407bf] (rid 112952) by dgp on 2010-08-17 00:23:41:
- icomment:
The stub table entries were added: 2000-07-21 Eric Melski <[email protected]> * generic/tclStubInit.c: * generic/tclObj.c: * generic/tclInt.h: * generic/tclHash.c: * generic/tclDecls.h: * generic/tcl.h: * generic/tcl.decls: * doc/Hash.3: Reapplied patch from Paul Duffin to extend hash tables to allow custom key types, such as Tcl_Obj *'s, and others.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [315e464a22] (rid 93415) by dgp on 2010-08-17 00:30:46:
- icomment:
To reclaim that patch, cvs -D 2000-07-21 -D 2000-07-22 in tcl/generic
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [5b319c547a] (rid 118274) by dgp on 2010-08-17 00:40:05:
- assignee changed to: "nijtmans"
- icomment:
Aim of the patch was to move toward a revised hash table implementation. The change was a binary incompat, though, so it was disabled with #ifdef TCL_PRESERVE_BINARY_COMPATIBILITY. Sometime in Tcl 8.5 development, the new maintainers concluded that preserving binary compat was one of the things Tcl 8.* development was commited to, so dragging around code never to be enabled was no longer worth doing. So now we still have stub table entries that support only a configuration we removed in the last minor release. Seems like they can go away. Probably best we make the change on in 8.6 development and delay or forgo any changes to tcl.decls in 8.5.*
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
Ticket change [98966536d2] (rid 110632) by nijtmans on 2010-08-19 23:06:14:
- icomment:
There is another option: We could keep the stub table entries, but make the signature match the doc again. That would be OK to me too.
- login: "nijtmans"
- mimetype: "text/plain"
- username: "nijtmans"
- icomment:
Ticket change [8b532cabd8] (rid 127545) by nijtmans on 2010-08-23 01:15:41:
- icomment:
File Deleted - 375339:
- login: "nijtmans"
- mimetype: "text/plain"
- username: "nijtmans"
- icomment:
Add attachment "hash.patch" [9fc549e69d] (rid 96700) by nijtmans on 2010-08-23 01:20:03.
Ticket change [4ad0735e70] (rid 126590) by nijtmans on 2010-08-23 01:20:03:
- icomment:
File Added - 384222: hash.patch
- login: "nijtmans"
- mimetype: "text/plain"
- username: "nijtmans"
- icomment:
Ticket change [d08e5bffcd] (rid 113204) by nijtmans on 2010-08-23 01:22:42:
- icomment:
Here is a better patch, which does the same as the previous one, but restores the two functions having the same signature and behavior as the macros. Still, the stub entries are useless, but at least there is an option now to remove the macros and still having everything work as before.
- login: "nijtmans"
- mimetype: "text/plain"
- username: "nijtmans"
- icomment:
Ticket change [ca97603a8a] (rid 95381) by nijtmans on 2011-01-01 00:20:55:
- closedate changed to: "2010-12-31T17:20:55"
- closer changed to: "nijtmans"
- icomment:
allow_comments - 1 Backported to 8.5: Now the Tcl_(Find|Create)HashEntry functions do exactly the same as the Tcl_(Find|Create)HashEntry macro's, so at least the confusion addressed in this issue is gone.
- login: "nijtmans"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- username: "nijtmans"