allocation functions
Torbjorn Granlund
tege@swox.com
18 Dec 2002 23:34:04 +0100
Kevin Ryde <user42@zip.com.au> writes:
Torbjorn Granlund <tege@swox.com> writes:
>
> A good idea. Perhaps add that to tasks.html?
I was about to actually do it! :)
An even better idea...
I was thinking that gmp-h.in might need cleansing of
other internal variables/functions.
> OK, so let's a that!
How about something basic like the following, taking pointers to
fun-pointers for each of the routines. Passing NULL would be allowed
for each, in which case you don't that one back.
void
mp_get_memory_functions (void *(**alloc_func) (size_t),
void *(**realloc_func) (void *, size_t, size_t),
void (**free_func) (void *, size_t));
Looks good.
--
Torbjörn