Github User Fetcher 1.0.0
C Application with Server and GUI
|
Go to the source code of this file.
Macros | |
#define | MEMERRMSG "not enough memory" |
#define | luaM_reallocv(L, b, on, n, e) |
#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, t) luaM_reallocv(L, (b), n, 0, sizeof(t)) |
#define | luaM_malloc(L, t) luaM_realloc_(L, NULL, 0, (t)) |
#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_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 void * | luaM_realloc_ (lua_State *L, void *block, size_t oldsize, size_t size) |
LUAI_FUNC void * | luaM_toobig (lua_State *L) |
LUAI_FUNC void * | luaM_growaux_ (lua_State *L, void *block, int *size, size_t size_elem, int limit, const char *errormsg) |
#define luaM_free | ( | L, | |
b ) luaM_realloc_(L, (b), sizeof(*(b)), 0) |
Definition at line 25 of file lua-5.1.5/src/lmem.h.
Referenced by freeupval(), luaC_upvdeccount(), luaE_freeCI(), luaE_freethread(), luaE_shrinkCI(), luaF_close(), luaF_freeproto(), luaF_freeupval(), and luaH_free().
#define luaM_freearray | ( | L, | |
b, | |||
n, | |||
t ) luaM_reallocv(L, (b), n, 0, sizeof(t)) |
Definition at line 26 of file lua-5.1.5/src/lmem.h.
Referenced by close_state(), close_state(), close_state(), close_state(), freehash(), freestack(), freestack(), freestack(), freestack(), luaD_protectedparser(), luaD_reallocstack(), luaF_freeproto(), luaH_free(), luaH_resize(), luaH_resize(), luaS_resize(), and resize().
#define luaM_freemem | ( | L, | |
b, | |||
s ) luaM_realloc_(L, (b), (s), 0) |
Definition at line 24 of file lua-5.1.5/src/lmem.h.
Referenced by freeLclosure(), freeobj(), freeobj(), freeobj(), freeobj(), luaE_freethread(), and luaF_freeclosure().
#define luaM_growvector | ( | L, | |
v, | |||
nelems, | |||
size, | |||
t, | |||
limit, | |||
e ) |
Definition at line 33 of file lua-5.1.5/src/lmem.h.
Referenced by addk(), addk(), addk(), addk(), addprototype(), addprototype(), addprototype(), allocupvalue(), indexupvalue(), luaK_code(), luaK_code(), luaK_code(), luaK_code(), new_localvar(), new_localvar(), new_localvar(), newlabelentry(), newlabelentry(), newlabelentry(), newupvalue(), newupvalue(), pushclosure(), registerlocalvar(), registerlocalvar(), registerlocalvar(), registerlocalvar(), and savelineinfo().
#define luaM_malloc | ( | L, | |
t ) luaM_realloc_(L, NULL, 0, (t)) |
Definition at line 28 of file lua-5.1.5/src/lmem.h.
Referenced by luaE_newthread(), luaF_newCclosure(), luaF_newLclosure(), luaS_newudata(), and newlstr().
#define luaM_new | ( | L, | |
t ) cast(t *, luaM_malloc(L, sizeof(t))) |
Definition at line 29 of file lua-5.1.5/src/lmem.h.
Referenced by luaE_extendCI(), luaF_findupval(), luaF_initupvals(), luaF_newproto(), luaF_newupval(), and luaH_new().
#define luaM_newvector | ( | L, | |
n, | |||
t ) cast(t *, luaM_reallocv(L, NULL, 0, n, sizeof(t))) |
Definition at line 30 of file lua-5.1.5/src/lmem.h.
Referenced by combine(), LoadCode(), LoadCode(), LoadCode(), LoadConstants(), LoadConstants(), LoadConstants(), LoadDebug(), LoadDebug(), LoadDebug(), LoadProtos(), LoadUpvalues(), LoadUpvalues(), luaS_init(), luaS_resize(), setnodevector(), setnodevector(), setnodevector(), setnodevector(), stack_init(), stack_init(), stack_init(), and stack_init().
#define luaM_reallocv | ( | L, | |
b, | |||
on, | |||
n, | |||
e ) |
Definition at line 19 of file lua-5.1.5/src/lmem.h.
Referenced by luaM_growaux_(), and luaM_growaux_().
#define luaM_reallocvector | ( | L, | |
v, | |||
oldn, | |||
n, | |||
t ) ((v)=cast(t *, luaM_reallocv(L, v, oldn, n, sizeof(t)))) |
Definition at line 37 of file lua-5.1.5/src/lmem.h.
Referenced by close_func(), close_func(), close_func(), luaD_reallocCI(), luaD_reallocstack(), luaD_reallocstack(), luaH_resize(), luaH_resize(), luaH_resize(), luaS_resize(), luaS_resize(), resize(), setarrayvector(), setarrayvector(), and setarrayvector().
#define MEMERRMSG "not enough memory" |
Definition at line 16 of file lua-5.1.5/src/lmem.h.
Referenced by f_luaopen(), luaD_seterrorobj(), and luaS_init().
LUAI_FUNC void * luaM_growaux_ | ( | lua_State * | L, |
void * | block, | ||
int * | size, | ||
size_t | size_elem, | ||
int | limit, | ||
const char * | errormsg ) |
Definition at line 46 of file lua-5.1.5/src/lmem.c.
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.