[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Troubles with dispose function on oset
From: |
xeos |
Subject: |
Troubles with dispose function on oset |
Date: |
Mon, 26 Nov 2007 17:48:41 +0100 |
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-const type as first
argument, it will warn me by conflict at prototype.
On the other hand, I declare it as const. It warn me if I try to do
free() on it.
My question is: How to should I use this?
PS: Is not there any documentation of modules itself? Otherwise I
would suggest it.
Thanks in advance ^^
--
λf . (λx . (f (x x)) λx . (f (x x)))
- Troubles with dispose function on oset,
xeos <=