diff options
Diffstat (limited to 'lstate.c')
-rw-r--r-- | lstate.c | 7 |
1 files changed, 1 insertions, 6 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lstate.c,v 2.98 2012/05/30 12:33:44 roberto Exp roberto $ | 2 | ** $Id: lstate.c,v 2.99 2012/10/02 17:40:53 roberto Exp roberto $ |
3 | ** Global State | 3 | ** Global State |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -30,10 +30,6 @@ | |||
30 | #define LUAI_GCPAUSE 200 /* 200% */ | 30 | #define LUAI_GCPAUSE 200 /* 200% */ |
31 | #endif | 31 | #endif |
32 | 32 | ||
33 | #if !defined(LUAI_GCMAJOR) | ||
34 | #define LUAI_GCMAJOR 200 /* 200% */ | ||
35 | #endif | ||
36 | |||
37 | #if !defined(LUAI_GCMUL) | 33 | #if !defined(LUAI_GCMUL) |
38 | #define LUAI_GCMUL 200 /* GC runs 'twice the speed' of memory allocation */ | 34 | #define LUAI_GCMUL 200 /* GC runs 'twice the speed' of memory allocation */ |
39 | #endif | 35 | #endif |
@@ -298,7 +294,6 @@ LUA_API lua_State *lua_newstate (lua_Alloc f, void *ud) { | |||
298 | g->totalbytes = sizeof(LG); | 294 | g->totalbytes = sizeof(LG); |
299 | g->GCdebt = 0; | 295 | g->GCdebt = 0; |
300 | g->gcpause = LUAI_GCPAUSE; | 296 | g->gcpause = LUAI_GCPAUSE; |
301 | g->gcmajorinc = LUAI_GCMAJOR; | ||
302 | g->gcstepmul = LUAI_GCMUL; | 297 | g->gcstepmul = LUAI_GCMUL; |
303 | for (i=0; i < LUA_NUMTAGS; i++) g->mt[i] = NULL; | 298 | for (i=0; i < LUA_NUMTAGS; i++) g->mt[i] = NULL; |
304 | if (luaD_rawrunprotected(L, f_luaopen, NULL) != LUA_OK) { | 299 | if (luaD_rawrunprotected(L, f_luaopen, NULL) != LUA_OK) { |