diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2003-10-02 17:31:17 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2003-10-02 17:31:17 -0300 |
| commit | b97fb932ece7872a8d1dd6c0a2c88f3ce33e9741 (patch) | |
| tree | d9e60044a35ad3fdf761f28506be08205081ebd7 /lstate.h | |
| parent | c7cf92e6f318823406e40ad6016e5ccb4e041c72 (diff) | |
| download | lua-b97fb932ece7872a8d1dd6c0a2c88f3ce33e9741.tar.gz lua-b97fb932ece7872a8d1dd6c0a2c88f3ce33e9741.tar.bz2 lua-b97fb932ece7872a8d1dd6c0a2c88f3ce33e9741.zip | |
Lua kernel does not use malloc/free functions.
Diffstat (limited to 'lstate.h')
| -rw-r--r-- | lstate.h | 4 |
1 files changed, 3 insertions, 1 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lstate.h,v 1.110 2003/04/28 19:26:16 roberto Exp roberto $ | 2 | ** $Id: lstate.h,v 1.111 2003/07/16 20:49:02 roberto Exp roberto $ |
| 3 | ** Global State | 3 | ** Global State |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -101,6 +101,8 @@ typedef struct global_State { | |||
| 101 | GCObject *rootgc; /* list of (almost) all collectable objects */ | 101 | GCObject *rootgc; /* list of (almost) all collectable objects */ |
| 102 | GCObject *rootudata; /* (separated) list of all userdata */ | 102 | GCObject *rootudata; /* (separated) list of all userdata */ |
| 103 | GCObject *tmudata; /* list of userdata to be GC */ | 103 | GCObject *tmudata; /* list of userdata to be GC */ |
| 104 | lua_Alloc realloc; /* function to reallocate memory */ | ||
| 105 | void *ud; /* auxiliary data to `realloc' */ | ||
| 104 | Mbuffer buff; /* temporary buffer for string concatentation */ | 106 | Mbuffer buff; /* temporary buffer for string concatentation */ |
| 105 | lu_mem GCthreshold; | 107 | lu_mem GCthreshold; |
| 106 | lu_mem nblocks; /* number of `bytes' currently allocated */ | 108 | lu_mem nblocks; /* number of `bytes' currently allocated */ |
