Macros | Functions
lmem.c File Reference
#include "lprefix.h"
#include <stddef.h>
#include "lua.h"
#include "ldebug.h"
#include "ldo.h"
#include "lgc.h"
#include "lmem.h"
#include "lobject.h"
#include "lstate.h"
Include dependency graph for lmem.c:

Go to the source code of this file.

Macros

#define firsttry(g, block, os, ns)   ((*g->frealloc)(g->ud, block, os, ns))
 
#define lmem_c
 
#define LUA_CORE
 
#define MINSIZEARRAY   4
 

Functions

void luaM_free_ (lua_State *L, void *block, size_t osize)
 
void * luaM_growaux_ (lua_State *L, void *block, int nelems, int *psize, int size_elems, int limit, const char *what)
 
void * luaM_malloc_ (lua_State *L, size_t size, int tag)
 
void * luaM_realloc_ (lua_State *L, void *block, size_t osize, size_t nsize)
 
void * luaM_saferealloc_ (lua_State *L, void *block, size_t osize, size_t nsize)
 
void * luaM_shrinkvector_ (lua_State *L, void *block, int *size, int final_n, int size_elem)
 
l_noret luaM_toobig (lua_State *L)
 
static void * tryagain (lua_State *L, void *block, size_t osize, size_t nsize)
 

Macro Definition Documentation

◆ firsttry

#define firsttry (   g,
  block,
  os,
  ns 
)    ((*g->frealloc)(g->ud, block, os, ns))

Definition at line 38 of file lmem.c.

◆ lmem_c

#define lmem_c

Definition at line 7 of file lmem.c.

◆ LUA_CORE

#define LUA_CORE

Definition at line 8 of file lmem.c.

◆ MINSIZEARRAY

#define MINSIZEARRAY   4

Definition at line 76 of file lmem.c.

Function Documentation

◆ luaM_free_()

void luaM_free_ ( lua_State L,
void *  block,
size_t  osize 
)

Definition at line 132 of file lmem.c.

◆ luaM_growaux_()

void* luaM_growaux_ ( lua_State L,
void *  block,
int  nelems,
int *  psize,
int  size_elems,
int  limit,
const char *  what 
)

Definition at line 79 of file lmem.c.

◆ luaM_malloc_()

void* luaM_malloc_ ( lua_State L,
size_t  size,
int  tag 
)

Definition at line 187 of file lmem.c.

◆ luaM_realloc_()

void* luaM_realloc_ ( lua_State L,
void *  block,
size_t  osize,
size_t  nsize 
)

Definition at line 162 of file lmem.c.

◆ luaM_saferealloc_()

void* luaM_saferealloc_ ( lua_State L,
void *  block,
size_t  osize,
size_t  nsize 
)

Definition at line 178 of file lmem.c.

◆ luaM_shrinkvector_()

void* luaM_shrinkvector_ ( lua_State L,
void *  block,
int *  size,
int  final_n,
int  size_elem 
)

Definition at line 110 of file lmem.c.

◆ luaM_toobig()

l_noret luaM_toobig ( lua_State L)

Definition at line 124 of file lmem.c.

◆ tryagain()

static void* tryagain ( lua_State L,
void *  block,
size_t  osize,
size_t  nsize 
)
static

Definition at line 148 of file lmem.c.



plotjuggler
Author(s): Davide Faconti
autogenerated on Mon Nov 11 2024 03:23:49