diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2001-01-25 14:45:36 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2001-01-25 14:45:36 -0200 |
commit | a53d9b66ca6247818acaf41e28cdf123082a272b (patch) | |
tree | 8e909200d4d925fc7394e6adf83cc5941456c588 /lstate.c | |
parent | c8559e3c8d12e052783e2952db1372c68cc16059 (diff) | |
download | lua-a53d9b66ca6247818acaf41e28cdf123082a272b.tar.gz lua-a53d9b66ca6247818acaf41e28cdf123082a272b.tar.bz2 lua-a53d9b66ca6247818acaf41e28cdf123082a272b.zip |
first implementation for type names
Diffstat (limited to 'lstate.c')
-rw-r--r-- | lstate.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lstate.c,v 1.52 2001/01/22 18:01:38 roberto Exp roberto $ | 2 | ** $Id: lstate.c,v 1.53 2001/01/24 15:45:33 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 | */ |
@@ -86,6 +86,7 @@ static void f_luaopen (lua_State *L, void *ud) { | |||
86 | G(L)->nblocks = sizeof(lua_State) + sizeof(global_State); | 86 | G(L)->nblocks = sizeof(lua_State) + sizeof(global_State); |
87 | luaD_init(L, so->stacksize); /* init stack */ | 87 | luaD_init(L, so->stacksize); /* init stack */ |
88 | L->gt = luaH_new(L, 10); /* table of globals */ | 88 | L->gt = luaH_new(L, 10); /* table of globals */ |
89 | G(L)->type2tag = luaH_new(L, 10); | ||
89 | luaS_init(L); | 90 | luaS_init(L); |
90 | luaX_init(L); | 91 | luaX_init(L); |
91 | luaT_init(L); | 92 | luaT_init(L); |