1361
|
1 #ifndef DBMALLOC_H_ |
|
2 #define DBMALLOC_H_ |
|
3 |
|
4 #include "includes.h" |
|
5 |
|
6 void * m_malloc(size_t size); |
|
7 /* m_calloc is limited in size, enough for libtomcrypt */ |
|
8 void * m_calloc(size_t nmemb, size_t size); |
|
9 void * m_strdup(const char * str); |
|
10 void * m_realloc(void* ptr, size_t size); |
|
11 void m_free_direct(void* ptr); |
|
12 #define m_free(X) do {m_free_direct(X); (X) = NULL;} while (0) |
|
13 |
|
14 void m_malloc_set_epoch(unsigned int epoch); |
|
15 void m_malloc_free_epoch(unsigned int epoch); |
|
16 |
|
17 #endif /* DBMALLOC_H_ */ |