1 /*
2 ** Bundled memory allocator.
3 ** Donated to the public domain.
4 */
5 
6 #ifndef _LJ_ALLOC_H
7 #define _LJ_ALLOC_H
8 
9 #include "lj_def.h"
10 
11 #ifndef LUAJIT_USE_SYSMALLOC
12 LJ_FUNC void *lj_alloc_create(PRNGState *rs);
13 LJ_FUNC void lj_alloc_setprng(void *msp, PRNGState *rs);
14 LJ_FUNC void lj_alloc_destroy(void *msp);
15 LJ_FUNC void *lj_alloc_f(void *msp, void *ptr, size_t osize, size_t nsize);
16 #endif
17 
18 #endif
19