I think you are missing a "*":
void (*perls_free)( void*p ) = &free; #undef free
But that still risks the second half of my warning:
(but don't use "free" any further down in your code, even indirectly via some other obscure C-preprocessor macro).
which seems rather difficult to avoid with any certainty given your assessment of the current messiness. :)
Update: BTW, I am aware that the "&" is "optional", but I consider this simply to be a mistake on the part of the ANSI C definers. (:
- tye
In reply to Re^3: XS malloc and free (whose)
by tye
in thread XS malloc and free
by Brutha
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |