Displaying 2 results from an estimated 2 matches for "set_ogg_malloc_handler".
2000 Oct 23
1
(no subject)
...lex.
>>If you're going to provide for callbacks, you obviously have to provide a
>>method to actually tell the library what your callbacks are. And they have
>>to propagate to _every_ function which might allocate or free memory.
>>Hardly trivial.<<
You need a set_ogg_malloc_handler(). That's it as far as the API goes.
As for the implementation, I'd suggest making a two-three line function
named ogg_malloc() that does the right thing. Do a grep through the ogg and
vorbis source to change all instances of "malloc" to "ogg_malloc".
Hardly non-triv...
2000 Oct 24
1
(no subject)
>>You need a set_ogg_malloc_handler(). That's it as far as the API goes.
>
>Assuming you consider it acceptable to store that information in
>global variables.
>
malloc() is currently a global function, so the situation is unchanged by
having a global name that refers to malloc() or a work-alike. Atleast, this
very...