Ardour
9.0-pre0-427-gd2a3450e2f
|
Go to the source code of this file.
Macros | |
#define | luaM_reallocv(L, b, on, n, e) |
#define | luaM_reallocvchar(L, b, on, n) cast(char *, luaM_realloc_(L, (b), (on)*sizeof(char), (n)*sizeof(char))) |
#define | luaM_freemem(L, b, s) luaM_realloc_(L, (b), (s), 0) |
#define | luaM_free(L, b) luaM_realloc_(L, (b), sizeof(*(b)), 0) |
#define | luaM_freearray(L, b, n) luaM_realloc_(L, (b), (n)*sizeof(*(b)), 0) |
#define | luaM_malloc(L, s) luaM_realloc_(L, NULL, 0, (s)) |
#define | luaM_new(L, t) cast(t *, luaM_malloc(L, sizeof(t))) |
#define | luaM_newvector(L, n, t) cast(t *, luaM_reallocv(L, NULL, 0, n, sizeof(t))) |
#define | luaM_newobject(L, tag, s) luaM_realloc_(L, NULL, tag, (s)) |
#define | luaM_growvector(L, v, nelems, size, t, limit, e) |
#define | luaM_reallocvector(L, v, oldn, n, t) ((v)=cast(t *, luaM_reallocv(L, v, oldn, n, sizeof(t)))) |
Functions | |
void | luaM_toobig (lua_State *L) |
void * | luaM_realloc_ (lua_State *L, void *block, size_t oldsize, size_t size) |
void * | luaM_growaux_ (lua_State *L, void *block, int *size, size_t size_elem, int limit, const char *what) |
#define luaM_free | ( | L, | |
b | |||
) | luaM_realloc_(L, (b), sizeof(*(b)), 0) |
#define luaM_freearray | ( | L, | |
b, | |||
n | |||
) | luaM_realloc_(L, (b), (n)*sizeof(*(b)), 0) |
#define luaM_freemem | ( | L, | |
b, | |||
s | |||
) | luaM_realloc_(L, (b), (s), 0) |
#define luaM_growvector | ( | L, | |
v, | |||
nelems, | |||
size, | |||
t, | |||
limit, | |||
e | |||
) |
#define luaM_malloc | ( | L, | |
s | |||
) | luaM_realloc_(L, NULL, 0, (s)) |
#define luaM_new | ( | L, | |
t | |||
) | cast(t *, luaM_malloc(L, sizeof(t))) |
#define luaM_newobject | ( | L, | |
tag, | |||
s | |||
) | luaM_realloc_(L, NULL, tag, (s)) |
#define luaM_newvector | ( | L, | |
n, | |||
t | |||
) | cast(t *, luaM_reallocv(L, NULL, 0, n, sizeof(t))) |
#define luaM_reallocv | ( | L, | |
b, | |||
on, | |||
n, | |||
e | |||
) |
#define luaM_reallocvchar | ( | L, | |
b, | |||
on, | |||
n | |||
) | cast(char *, luaM_realloc_(L, (b), (on)*sizeof(char), (n)*sizeof(char))) |
#define luaM_reallocvector | ( | L, | |
v, | |||
oldn, | |||
n, | |||
t | |||
) | ((v)=cast(t *, luaM_reallocv(L, v, oldn, n, sizeof(t)))) |
void* luaM_growaux_ | ( | lua_State * | L, |
void * | block, | ||
int * | size, | ||
size_t | size_elem, | ||
int | limit, | ||
const char * | what | ||
) |
void* luaM_realloc_ | ( | lua_State * | L, |
void * | block, | ||
size_t | oldsize, | ||
size_t | size | ||
) |
void luaM_toobig | ( | lua_State * | L | ) |