[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [pdf-devel] Patch for FS#56 (second try)
From: |
gerel |
Subject: |
Re: [pdf-devel] Patch for FS#56 (second try) |
Date: |
Wed, 23 Jul 2008 15:36:45 -0700 (PDT) |
Well, I have a 'final' patch.
Now I added two wrapper functions over pdf_dealloc() and the compiler issues a
warning concerning a non-const pointer. I mean, the function pointer type is,
##
typedef void (*pdf_hash_element_dispose_fn_t) (const void *elt);
###
While pdf_dealloc is,
##
void pdf_dealloc (void *pointer);
###
To solve this we can either declare 'elt' as 'void*elt' or
'pointer' as 'const void*pointer', i.e. both const or both non-const.
jemarch what do you suggest ?
After we fix this I'll send the patch.
-gerel