aboutsummaryrefslogtreecommitdiff
path: root/lstate.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2001-10-31 17:58:11 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2001-10-31 17:58:11 -0200
commitaf59848219abcab589ac174c829102ed8a2adc8d (patch)
tree3deabe4b29f255013ae2fe83553ffa48f578d90d /lstate.c
parent46347d768e571ba9b36581c36d11d2de1dee2cfb (diff)
downloadlua-af59848219abcab589ac174c829102ed8a2adc8d.tar.gz
lua-af59848219abcab589ac174c829102ed8a2adc8d.tar.bz2
lua-af59848219abcab589ac174c829102ed8a2adc8d.zip
tables of globals accessible through pseudo-index in C API
Diffstat (limited to 'lstate.c')
-rw-r--r--lstate.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lstate.c b/lstate.c
index 1fe006ae..98190c22 100644
--- a/lstate.c
+++ b/lstate.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lstate.c,v 1.69 2001/10/17 21:12:57 roberto Exp $ 2** $Id: lstate.c,v 1.70 2001/10/25 19:14:14 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*/
@@ -64,7 +64,7 @@ static void f_luaopen (lua_State *L, void *ud) {
64 G(L)->ntag = 0; 64 G(L)->ntag = 0;
65 G(L)->nblocks = sizeof(lua_State) + sizeof(global_State); 65 G(L)->nblocks = sizeof(lua_State) + sizeof(global_State);
66 luaD_init(L, so->stacksize); /* init stack */ 66 luaD_init(L, so->stacksize); /* init stack */
67 L->gt = luaH_new(L, 0, 4); /* table of globals */ 67 sethvalue(&L->gt, luaH_new(L, 0, 4)); /* table of globals */
68 G(L)->type2tag = luaH_new(L, 0, 3); 68 G(L)->type2tag = luaH_new(L, 0, 3);
69 sethvalue(&G(L)->registry, luaH_new(L, 0, 0)); 69 sethvalue(&G(L)->registry, luaH_new(L, 0, 0));
70 luaS_resize(L, 4); /* initial size of string table */ 70 luaS_resize(L, 4); /* initial size of string table */