diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-01-04 13:55:12 -0200 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-01-04 13:55:12 -0200 |
| commit | 65726f3e2e226f6a350a5dba643c13c8edd34965 (patch) | |
| tree | a65e8ac39cb13cbafdfc6870ffaea248e96b25ba /lstate.c | |
| parent | 9fe2d0266ac3ba30d432ca8edf6116beb94fe2af (diff) | |
| download | lua-65726f3e2e226f6a350a5dba643c13c8edd34965.tar.gz lua-65726f3e2e226f6a350a5dba643c13c8edd34965.tar.bz2 lua-65726f3e2e226f6a350a5dba643c13c8edd34965.zip | |
cleaner interface to `ltable'
Diffstat (limited to 'lstate.c')
| -rw-r--r-- | lstate.c | 6 |
1 files changed, 3 insertions, 3 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lstate.c,v 2.18 2004/12/06 17:53:42 roberto Exp roberto $ | 2 | ** $Id: lstate.c,v 2.19 2004/12/13 12:15:11 roberto Exp $ |
| 3 | ** Global State | 3 | ** Global State |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -87,9 +87,9 @@ static void f_luaopen (lua_State *L, void *ud) { | |||
| 87 | setbit(u->uv.marked, FIXEDBIT); | 87 | setbit(u->uv.marked, FIXEDBIT); |
| 88 | setbit(L->marked, FIXEDBIT); | 88 | setbit(L->marked, FIXEDBIT); |
| 89 | stack_init(L, L); /* init stack */ | 89 | stack_init(L, L); /* init stack */ |
| 90 | sethvalue(L, gt(L), luaH_new(L, 0, 4)); /* table of globals */ | 90 | sethvalue(L, gt(L), luaH_new(L, 0, 20)); /* table of globals */ |
| 91 | hvalue(gt(L))->metatable = luaH_new(L, 0, 0); /* globals metatable */ | 91 | hvalue(gt(L))->metatable = luaH_new(L, 0, 0); /* globals metatable */ |
| 92 | sethvalue(L, registry(L), luaH_new(L, 4, 4)); /* registry */ | 92 | sethvalue(L, registry(L), luaH_new(L, 6, 20)); /* registry */ |
| 93 | luaS_resize(L, MINSTRTABSIZE); /* initial size of string table */ | 93 | luaS_resize(L, MINSTRTABSIZE); /* initial size of string table */ |
| 94 | luaT_init(L); | 94 | luaT_init(L); |
| 95 | luaX_init(L); | 95 | luaX_init(L); |
