diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-03-05 13:22:54 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-03-05 13:22:54 -0300 |
commit | 457d88eaaa2ac32e4fa0b7c4310cda9bba95d154 (patch) | |
tree | d6b17e7f6f91f4b218cbf40cde21d32c38067697 /lstate.c | |
parent | 8a1a512c6484b93e8a4ad81f0bffe818a585c1ee (diff) | |
download | lua-457d88eaaa2ac32e4fa0b7c4310cda9bba95d154.tar.gz lua-457d88eaaa2ac32e4fa0b7c4310cda9bba95d154.tar.bz2 lua-457d88eaaa2ac32e4fa0b7c4310cda9bba95d154.zip |
configurable minimum size for the string table
Diffstat (limited to 'lstate.c')
-rw-r--r-- | lstate.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lstate.c,v 1.1 2001/11/29 22:14:34 rieru Exp rieru $ | 2 | ** $Id: lstate.c,v 1.84 2002/02/14 21:40:13 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 | */ |
@@ -65,7 +65,7 @@ static void f_luaopen (lua_State *L, void *ud) { | |||
65 | hvalue(defaultmeta(L))->metatable = hvalue(defaultmeta(L)); | 65 | hvalue(defaultmeta(L))->metatable = hvalue(defaultmeta(L)); |
66 | sethvalue(gt(L), luaH_new(L, 0, 4)); /* table of globals */ | 66 | sethvalue(gt(L), luaH_new(L, 0, 4)); /* table of globals */ |
67 | sethvalue(registry(L), luaH_new(L, 0, 0)); /* registry */ | 67 | sethvalue(registry(L), luaH_new(L, 0, 0)); /* registry */ |
68 | luaS_resize(L, 4); /* initial size of string table */ | 68 | luaS_resize(L, MINSTRTABSIZE); /* initial size of string table */ |
69 | luaT_init(L); | 69 | luaT_init(L); |
70 | luaX_init(L); | 70 | luaX_init(L); |
71 | G(L)->GCthreshold = 4*G(L)->nblocks; | 71 | G(L)->GCthreshold = 4*G(L)->nblocks; |