Github User Fetcher 1.0.0
C Application with Server and GUI
|
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 | |
LUAI_FUNC l_noret | luaM_toobig (lua_State *L) |
LUAI_FUNC void * | luaM_realloc_ (lua_State *L, void *block, size_t oldsize, size_t size) |
LUAI_FUNC 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) |
Definition at line 42 of file lua-5.3.6/src/lmem.h.
#define luaM_freearray | ( | L, | |
b, | |||
n ) luaM_realloc_(L, (b), (n)*sizeof(*(b)), 0) |
Definition at line 43 of file lua-5.3.6/src/lmem.h.
#define luaM_freemem | ( | L, | |
b, | |||
s ) luaM_realloc_(L, (b), (s), 0) |
Definition at line 41 of file lua-5.3.6/src/lmem.h.
#define luaM_growvector | ( | L, | |
v, | |||
nelems, | |||
size, | |||
t, | |||
limit, | |||
e ) |
Definition at line 52 of file lua-5.3.6/src/lmem.h.
#define luaM_malloc | ( | L, | |
s ) luaM_realloc_(L, NULL, 0, (s)) |
Definition at line 45 of file lua-5.3.6/src/lmem.h.
#define luaM_new | ( | L, | |
t ) cast(t *, luaM_malloc(L, sizeof(t))) |
Definition at line 46 of file lua-5.3.6/src/lmem.h.
#define luaM_newobject | ( | L, | |
tag, | |||
s ) luaM_realloc_(L, NULL, tag, (s)) |
Definition at line 50 of file lua-5.3.6/src/lmem.h.
#define luaM_newvector | ( | L, | |
n, | |||
t ) cast(t *, luaM_reallocv(L, NULL, 0, n, sizeof(t))) |
Definition at line 47 of file lua-5.3.6/src/lmem.h.
#define luaM_reallocv | ( | L, | |
b, | |||
on, | |||
n, | |||
e ) |
Definition at line 30 of file lua-5.3.6/src/lmem.h.
#define luaM_reallocvchar | ( | L, | |
b, | |||
on, | |||
n ) cast(char *, luaM_realloc_(L, (b), (on)*sizeof(char), (n)*sizeof(char))) |
Definition at line 38 of file lua-5.3.6/src/lmem.h.
#define luaM_reallocvector | ( | L, | |
v, | |||
oldn, | |||
n, | |||
t ) ((v)=cast(t *, luaM_reallocv(L, v, oldn, n, sizeof(t)))) |
Definition at line 56 of file lua-5.3.6/src/lmem.h.
LUAI_FUNC void * luaM_growaux_ | ( | lua_State * | L, |
void * | block, | ||
int * | size, | ||
size_t | size_elem, | ||
int | limit, | ||
const char * | what ) |
Definition at line 46 of file lua-5.1.5/src/lmem.c.
References block(), luaG_runerror(), luaM_reallocv, and MINSIZEARRAY.
Definition at line 76 of file lua-5.1.5/src/lmem.c.
Definition at line 66 of file lua-5.1.5/src/lmem.c.