Rename of fields in global state that control GC

All fields in the global state that control the pace of the garbage
collector prefixed with 'GC'.
This commit is contained in:
Roberto Ierusalimschy
2024-09-06 14:38:39 -03:00
parent 007b8c7a01
commit a04e0ffdb9
5 changed files with 32 additions and 32 deletions

4
lapi.c
View File

@@ -1190,11 +1190,11 @@ LUA_API int lua_gc (lua_State *L, int what, ...) {
}
case LUA_GCCOUNT: {
/* GC values are expressed in Kbytes: #bytes/2^10 */
res = cast_int(g->totalbytes >> 10);
res = cast_int(g->GCtotalbytes >> 10);
break;
}
case LUA_GCCOUNTB: {
res = cast_int(g->totalbytes & 0x3ff);
res = cast_int(g->GCtotalbytes & 0x3ff);
break;
}
case LUA_GCSTEP: {