From b97fb932ece7872a8d1dd6c0a2c88f3ce33e9741 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Thu, 2 Oct 2003 17:31:17 -0300 Subject: Lua kernel does not use malloc/free functions. --- lstate.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lstate.h') diff --git a/lstate.h b/lstate.h index 009ea790..94e9bbfa 100644 --- a/lstate.h +++ b/lstate.h @@ -1,5 +1,5 @@ /* -** $Id: lstate.h,v 1.110 2003/04/28 19:26:16 roberto Exp roberto $ +** $Id: lstate.h,v 1.111 2003/07/16 20:49:02 roberto Exp roberto $ ** Global State ** See Copyright Notice in lua.h */ @@ -101,6 +101,8 @@ typedef struct global_State { GCObject *rootgc; /* list of (almost) all collectable objects */ GCObject *rootudata; /* (separated) list of all userdata */ GCObject *tmudata; /* list of userdata to be GC */ + lua_Alloc realloc; /* function to reallocate memory */ + void *ud; /* auxiliary data to `realloc' */ Mbuffer buff; /* temporary buffer for string concatentation */ lu_mem GCthreshold; lu_mem nblocks; /* number of `bytes' currently allocated */ -- cgit v1.2.3-55-g6feb