aboutsummaryrefslogtreecommitdiff
path: root/lstate.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2022-11-23 17:29:03 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2022-11-23 17:29:03 -0300
commitec61be9a7e828bfa366a35658b90f53b1ce39478 (patch)
tree58ca7e26ac48fcbf26136efc2c72e30980f87e40 /lstate.h
parentf356d5acdd9d8e8f7e9d1d7632c4657f945ff4f4 (diff)
downloadlua-ec61be9a7e828bfa366a35658b90f53b1ce39478.tar.gz
lua-ec61be9a7e828bfa366a35658b90f53b1ce39478.tar.bz2
lua-ec61be9a7e828bfa366a35658b90f53b1ce39478.zip
'l_mem' renamed to 'l_obj' to count objects
Diffstat (limited to 'lstate.h')
-rw-r--r--lstate.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/lstate.h b/lstate.h
index 3ffd09b7..240550c2 100644
--- a/lstate.h
+++ b/lstate.h
@@ -249,10 +249,10 @@ typedef struct CallInfo {
249typedef struct global_State { 249typedef struct global_State {
250 lua_Alloc frealloc; /* function to reallocate memory */ 250 lua_Alloc frealloc; /* function to reallocate memory */
251 void *ud; /* auxiliary data to 'frealloc' */ 251 void *ud; /* auxiliary data to 'frealloc' */
252 l_mem totalbytes; /* number of bytes currently allocated */ 252 lu_mem totalbytes; /* number of bytes currently allocated */
253 l_mem totalobjs; /* total number of objects allocated - GCdebt */ 253 l_obj totalobjs; /* total number of objects allocated - GCdebt */
254 l_mem GCdebt; /* bytes allocated not yet compensated by the collector */ 254 l_obj GCdebt; /* bytes allocated not yet compensated by the collector */
255 lu_mem marked; /* number of objects marked in a GC cycle */ 255 l_obj marked; /* number of objects marked in a GC cycle */
256 lu_mem GCestimate; /* an estimate of the non-garbage memory in use */ 256 lu_mem GCestimate; /* an estimate of the non-garbage memory in use */
257 lu_mem lastatomic; /* see function 'genstep' in file 'lgc.c' */ 257 lu_mem lastatomic; /* see function 'genstep' in file 'lgc.c' */
258 stringtable strt; /* hash table for strings */ 258 stringtable strt; /* hash table for strings */
@@ -391,7 +391,7 @@ union GCUnion {
391#define gettotalobjs(g) ((g)->totalobjs + (g)->GCdebt) 391#define gettotalobjs(g) ((g)->totalobjs + (g)->GCdebt)
392 392
393 393
394LUAI_FUNC void luaE_setdebt (global_State *g, l_mem debt); 394LUAI_FUNC void luaE_setdebt (global_State *g, l_obj debt);
395LUAI_FUNC void luaE_freethread (lua_State *L, lua_State *L1); 395LUAI_FUNC void luaE_freethread (lua_State *L, lua_State *L1);
396LUAI_FUNC CallInfo *luaE_extendCI (lua_State *L); 396LUAI_FUNC CallInfo *luaE_extendCI (lua_State *L);
397LUAI_FUNC void luaE_freeCI (lua_State *L); 397LUAI_FUNC void luaE_freeCI (lua_State *L);