aboutsummaryrefslogtreecommitdiff
path: root/lgc.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2023-05-22 14:47:54 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2023-05-22 14:47:54 -0300
commit9be74ccc214eb6f4d9d0b9496fd973542c7377d9 (patch)
treee62aacce2266814e8c09a490e02ac6ad9cf13be0 /lgc.c
parent09f3c2372f5dbeaec9f50614a26c1b5761726a88 (diff)
downloadlua-9be74ccc214eb6f4d9d0b9496fd973542c7377d9.tar.gz
lua-9be74ccc214eb6f4d9d0b9496fd973542c7377d9.tar.bz2
lua-9be74ccc214eb6f4d9d0b9496fd973542c7377d9.zip
Several functions turned 'static'
Several functions that were already being used only inside their own file have been declared as 'static'.
Diffstat (limited to 'lgc.c')
-rw-r--r--lgc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lgc.c b/lgc.c
index a3094ff5..dd824e77 100644
--- a/lgc.c
+++ b/lgc.c
@@ -1409,7 +1409,7 @@ static void stepgenfull (lua_State *L, global_State *g) {
1409 setminordebt(g); 1409 setminordebt(g);
1410 } 1410 }
1411 else { /* another bad collection; stay in incremental mode */ 1411 else { /* another bad collection; stay in incremental mode */
1412 g->GCestimate = gettotalbytes(g); /* first estimate */; 1412 g->GCestimate = gettotalbytes(g); /* first estimate */
1413 entersweep(L); 1413 entersweep(L);
1414 luaC_runtilstate(L, bitmask(GCSpause)); /* finish collection */ 1414 luaC_runtilstate(L, bitmask(GCSpause)); /* finish collection */
1415 setpause(g); 1415 setpause(g);
@@ -1604,7 +1604,7 @@ static lu_mem singlestep (lua_State *L) {
1604 case GCSenteratomic: { 1604 case GCSenteratomic: {
1605 work = atomic(L); /* work is what was traversed by 'atomic' */ 1605 work = atomic(L); /* work is what was traversed by 'atomic' */
1606 entersweep(L); 1606 entersweep(L);
1607 g->GCestimate = gettotalbytes(g); /* first estimate */; 1607 g->GCestimate = gettotalbytes(g); /* first estimate */
1608 break; 1608 break;
1609 } 1609 }
1610 case GCSswpallgc: { /* sweep "regular" objects */ 1610 case GCSswpallgc: { /* sweep "regular" objects */