tudocomp
– The TU Dortmund Compression Framework
malloc.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 #ifndef _GNU_SOURCE
4 #define _GNU_SOURCE
5 #endif
6 
7 #include <cstdlib>
8 
9 #ifndef STATS_DISABLED
10 
12 namespace malloc_callback {
13  void on_alloc(size_t);
14  void on_free(size_t);
15 }
17 
18 #endif
19 
20 #ifndef __CYGWIN__ // this does not work in Cygwin
21 #ifndef __MACH__ // Temporary disable on OS X
22 
23 extern "C" void* __libc_malloc(size_t);
24 extern "C" void __libc_free(void*);
25 extern "C" void* __libc_realloc(void*, size_t);
26 
27 #endif
28 #endif
void __libc_free(void *)
void * __libc_malloc(size_t)
void * __libc_realloc(void *, size_t)