diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-05-16 15:39:46 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-05-16 15:39:46 -0300 |
commit | 955def034814e96f5f8e42def2e47ca6817ef103 (patch) | |
tree | d8eea96980860d1d1e5005ee6ecedb47fa64d594 /ldo.c | |
parent | 9c3b3f82fe1b0942183ddeef2e16d60bab4f4c06 (diff) | |
download | lua-955def034814e96f5f8e42def2e47ca6817ef103.tar.gz lua-955def034814e96f5f8e42def2e47ca6817ef103.tar.bz2 lua-955def034814e96f5f8e42def2e47ca6817ef103.zip |
new names for string formating functions
Diffstat (limited to 'ldo.c')
-rw-r--r-- | ldo.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ldo.c,v 1.174 2002/05/07 17:36:56 roberto Exp roberto $ | 2 | ** $Id: ldo.c,v 1.175 2002/05/15 18:57:44 roberto Exp roberto $ |
3 | ** Stack and Call structure of Lua | 3 | ** Stack and Call structure of Lua |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -424,7 +424,7 @@ int luaD_protectedparser (lua_State *L, ZIO *z, int bin) { | |||
424 | lua_lock(L); | 424 | lua_lock(L); |
425 | p.z = z; p.bin = bin; | 425 | p.z = z; p.bin = bin; |
426 | /* before parsing, give a (good) chance to GC */ | 426 | /* before parsing, give a (good) chance to GC */ |
427 | if (G(L)->nblocks/8 >= G(L)->GCthreshold/10) | 427 | if (G(L)->nblocks + G(L)->nblocks/4 >= G(L)->GCthreshold) |
428 | luaC_collectgarbage(L); | 428 | luaC_collectgarbage(L); |
429 | old_blocks = G(L)->nblocks; | 429 | old_blocks = G(L)->nblocks; |
430 | setnilvalue(&p.err); | 430 | setnilvalue(&p.err); |