Skip to content
Tcl Source Code View Ticket
Login

View Ticket

Odd result type of Tcl_HashStats

Closed / Fixed733945ffffffffffffffffffffffffffffffffffCreated 24 years agoUpdated 12 years ago
Descriptionplain2003-05-07 15:30:36
The result type of Tcl_HashStats() is 'CONST char *'
but this is a dynamically allocated string and
modification of it should not be a problem.  It seems
stupid to have to cast the value just to pass it into
either Tcl_SetResult() or ckfree(), both of which are
intended uses!
dgpplain2003-05-13 00:39:08
Logged In: YES 
user_id=80530


Agreed.  I'm reluctant to change it now, since it's
a public interface.

We could add an internal version with a better
return type, if you like.

Overall, I think the interface is of limited utility
anyway.  Would not bother me if it disappeared.
dkf Ticket [733945ffff]: 1 change [History diff]2003-05-13 19:28:42
dkf Ticket [733945ffff]: 6 changes [History diff]2014-09-11 12:48:22
jan.nijtmanswiki2014-09-11 13:21:15

Already fixed: [2b7fc9b444]

Closing

Log in (anonymous is fine) to add a comment.