lua/lmem.c File Reference

#include <stdlib.h>
#include "lua.h"
#include "ldebug.h"
#include "ldo.h"
#include "lmem.h"
#include "lobject.h"
#include "lstate.h"

Go to the source code of this file.

Defines

#define lmem_c
#define l_realloc(b, os, s)   realloc(b,s)
#define l_free(b, os)   free(b)
#define MINSIZEARRAY   4

Functions

void * luaM_growaux (lua_State *L, void *block, int *size, int size_elems, int limit, const char *errormsg)
void * luaM_realloc (lua_State *L, void *block, lu_mem oldsize, lu_mem size)


Define Documentation

#define l_free ( b,
os   )     free(b)

Definition at line 36 of file lmem.c.

Referenced by luaM_realloc().

#define l_realloc ( b,
os,
 )     realloc(b,s)

Definition at line 28 of file lmem.c.

Referenced by luaM_realloc().

#define lmem_c

Definition at line 10 of file lmem.c.

#define MINSIZEARRAY   4

Definition at line 40 of file lmem.c.

Referenced by luaM_growaux().


Function Documentation

void* luaM_growaux ( lua_State L,
void *  block,
int *  size,
int  size_elems,
int  limit,
const char *  errormsg 
)

Definition at line 43 of file lmem.c.

References cast, luaG_runerror(), luaM_realloc(), and MINSIZEARRAY.

void* luaM_realloc ( lua_State L,
void *  block,
lu_mem  oldsize,
lu_mem  size 
)

Definition at line 65 of file lmem.c.

References G, l_free, l_realloc, lua_assert, luaD_throw(), luaG_runerror(), and MAX_SIZET.

Referenced by luaM_growaux().


Generated on Fri Oct 12 08:44:55 2007 for rpm by  doxygen 1.5.2