Eric Biggers
0ded4c6f52
lib: add libdeflate_set_memory_allocator()
...
Add an API function to install a custom memory allocator.
Resolves https://github.com/ebiggers/libdeflate/issues/62
2020-04-17 21:28:49 -07:00
Eric Biggers
944500af9f
lib: wrap the memory allocation functions
...
In preparation for adding custom memory allocator support, don't call
the standard memory allocation functions directly but rather wrap them
with libdeflate_malloc() and libdeflate_free().
2020-04-17 21:28:49 -07:00
Eric Biggers
66bd59c4be
lib: rename the aligned allocation functions
...
In preparation for adding libdeflate_malloc() and libdeflate_free(),
rename the aligned allocation functions to match.
2020-04-17 21:28:49 -07:00
Eric Biggers
64b4e8191e
lib: rename aligned_malloc.c to utils.c
...
Prepare to use this file for more utility functions.
2020-04-17 21:28:49 -07:00