Re: Troubles with dispose function on oset

2007-11-27 Thread Bruno Haible
Hi, > I have written my dispose > function, I get as parameter a void pointer, > which it seems I must free too. However its prototype is like: > > typedef void (*gl_setelement_dispose_fn) (const void *elt); > > Then, if I declare my function with a non-const type as first > argument, it wil

Troubles with dispose function on oset

2007-11-26 Thread xeos
Hi everyone, I have a trouble at oset modules of gnulib. I have written my dispose function, I get as parameter a void pointer, which it seems I must free too. However its prototype is like: typedef void (*gl_setelement_dispose_fn) (const void *elt); Then, if I declare my function with a non