diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2022-11-23 17:29:03 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2022-11-23 17:29:03 -0300 |
commit | ec61be9a7e828bfa366a35658b90f53b1ce39478 (patch) | |
tree | 58ca7e26ac48fcbf26136efc2c72e30980f87e40 /lstate.h | |
parent | f356d5acdd9d8e8f7e9d1d7632c4657f945ff4f4 (diff) | |
download | lua-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.h | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -249,10 +249,10 @@ typedef struct CallInfo { | |||
249 | typedef struct global_State { | 249 | typedef 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 | ||
394 | LUAI_FUNC void luaE_setdebt (global_State *g, l_mem debt); | 394 | LUAI_FUNC void luaE_setdebt (global_State *g, l_obj debt); |
395 | LUAI_FUNC void luaE_freethread (lua_State *L, lua_State *L1); | 395 | LUAI_FUNC void luaE_freethread (lua_State *L, lua_State *L1); |
396 | LUAI_FUNC CallInfo *luaE_extendCI (lua_State *L); | 396 | LUAI_FUNC CallInfo *luaE_extendCI (lua_State *L); |
397 | LUAI_FUNC void luaE_freeCI (lua_State *L); | 397 | LUAI_FUNC void luaE_freeCI (lua_State *L); |