in reply to Re^2: XS malloc and free (whose)
in thread XS malloc and free
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: XS malloc and free (whose)
by BrowserUk (Patriarch) on Feb 07, 2006 at 20:59 UTC | |
by Brutha (Friar) on Feb 08, 2006 at 07:08 UTC | |
by BrowserUk (Patriarch) on Feb 08, 2006 at 08:08 UTC |