commit b4c6c0ff9bad819f539c1e83a367d570bf15e9d2 parent cf42ef6c23c178222c23fb9e520e7c3a7f6cf310 Author: sin <sin@2f30.org> Date: Wed, 24 Jul 2013 18:27:24 +0300 Add malloc_size() so it works on OS X as well Diffstat:
M | alloc.c | | | 6 | ++++++ |
1 file changed, 6 insertions(+), 0 deletions(-)
diff --git a/alloc.c b/alloc.c @@ -113,3 +113,9 @@ malloc_usable_size(void *p) return chunks[i].size; return 0; } + +size_t +malloc_size(void *p) +{ + return malloc_usable_size(p); +}