On Wed, 2005-05-18 at 16:16 +0100, Ian Abbott wrote: > On 17/05/2005 10:20, Yoann Vandoorselaere wrote: > > However, I still consider this version of the patch to be a hack, when > > the real bug here is that you should not use const since you permit the > > user to free() the data from the interface callback. The interface > > should not use const at all. > > Can you show how the Hash_data_freer callback is called from > hash_insert, because I can't see it!
It is not. The point was that the interface allow the user to specify a callback for freeing the data, and thus the pointer to theses data should not be marked as const. -- Yoann Vandoorselaere <[EMAIL PROTECTED]> _______________________________________________ bug-gnulib mailing list bug-gnulib@gnu.org http://lists.gnu.org/mailman/listinfo/bug-gnulib