allocation functions

Torbjorn Granlund
18 Dec 2002 23:34:04 +0100

Kevin Ryde <> writes:

  Torbjorn Granlund <> 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 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.
  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.