Artifacts Associated With Ticket 3009403
Ticket change [f192a955b3] (rid 109384) by nijtmans on 2010-05-31 09:49:31:
- assignee initialized to: "msofer"
- cmimetype initialized to: "text/plain"
- comment initialized 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.
- foundin initialized to: "None"
- is_private initialized to: "0"
- priority initialized to: "3 Low"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "nijtmans"
- subsystem initialized to: "52. Portability Support"
- title initialized to:
Signature of Tcl_GetHashKey, Tcl_(Create|Find)HashEntry
- type initialized to: "Patch"
Ticket change [1f162ecd63] (rid 91083) by nijtmans on 2010-05-31 16:49:31:
- icomment:
File Added - 375686: hash.patch
- login: "nijtmans"
- mimetype: "text/plain"
- username: "nijtmans"
- icomment:
Add attachment "hash.patch" [5ed3621d6e] (rid 115697) by nijtmans on 2010-05-31 16:49:31.
Ticket change [df97a6555a] (rid 115038) by nijtmans on 2010-08-15 03:59:43:
- icomment:
signature change checked in HEAD
- login: "nijtmans"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- username: "nijtmans"
- icomment:
Ticket change [903eb0a656] (rid 120420) by dgp on 2010-08-15 08:41:31:
- assignee changed to: "dgp"
- priority changed to: "9 Immediate"
Ticket change [56c46a0fe7] (rid 94381) by nijtmans on 2010-08-16 08:44:48:
- icomment:
Don, does this mean you are evaluating this? Great!
- login: "nijtmans"
- mimetype: "text/plain"
- username: "nijtmans"
- icomment:
Ticket change [d845a9f599] (rid 107408) by dgp on 2010-08-17 01:13:44:
- assignee changed to: "nijtmans"
- closedate changed to: "2010-08-16T18:13:44"
- closer changed to: "dgp"
- icomment:
allow_comments - 1 Don't see any problem with this. Agree that as long as this is done, it's better to get 3007895 done too.
- login: "dgp"
- mimetype: "text/plain"
- status changed to: "Closed"
- username: "dgp"
Ticket change [fa66934a7a] (rid 141102) by dgp on 2015-01-26 16:39:15:
- assignee changed to: "aku"
- closedate changed to: "2457049.19393358"
- 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.
- icomment:
Just for the record, this caused some source incompat trouble with Itk 4 sources. Not difficult to resolve.
- login: "dgp"
- mimetype: "text/plain"
- severity changed to: "Minor"