aboutsummaryrefslogtreecommitdiff
path: root/lua.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2023-12-22 14:57:43 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2023-12-22 14:57:43 -0300
commite81f586001d767c8de9b760ae2e2c3b5da1542c6 (patch)
tree26032fb57c824d62a4c1547159d58f5d5c223e96 /lua.c
parente2cc179454c6aa6cde5f98954bd3783e0d5d53a3 (diff)
downloadlua-e81f586001d767c8de9b760ae2e2c3b5da1542c6.tar.gz
lua-e81f586001d767c8de9b760ae2e2c3b5da1542c6.tar.bz2
lua-e81f586001d767c8de9b760ae2e2c3b5da1542c6.zip
Removed compatibility option LUA_COMPAT_GCPARAMS
The meaning of different GC parameters changed, so there is point in supporting old values for them. The new code simply ignores the parameters when changing the GC mode, so the incompatibility is small.
Diffstat (limited to 'lua.c')
-rw-r--r--lua.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lua.c b/lua.c
index 1e884b07..e574ec9b 100644
--- a/lua.c
+++ b/lua.c
@@ -646,7 +646,7 @@ static int pmain (lua_State *L) {
646 luai_openlibs(L); /* open standard libraries */ 646 luai_openlibs(L); /* open standard libraries */
647 createargtable(L, argv, argc, script); /* create table 'arg' */ 647 createargtable(L, argv, argc, script); /* create table 'arg' */
648 lua_gc(L, LUA_GCRESTART); /* start GC... */ 648 lua_gc(L, LUA_GCRESTART); /* start GC... */
649 lua_gc(L, LUA_GCGEN, 0, 0); /* ...in generational mode */ 649 lua_gc(L, LUA_GCGEN); /* ...in generational mode */
650 if (!(args & has_E)) { /* no option '-E'? */ 650 if (!(args & has_E)) { /* no option '-E'? */
651 if (handle_luainit(L) != LUA_OK) /* run LUA_INIT */ 651 if (handle_luainit(L) != LUA_OK) /* run LUA_INIT */
652 return 0; /* error running LUA_INIT */ 652 return 0; /* error running LUA_INIT */