diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-05-08 14:34:23 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-05-08 14:34:23 -0300 |
commit | 01f1ac36b13f4fb23527785add70afe64f275944 (patch) | |
tree | 7baf8b33faacb220683f416528e3fcc0cd033735 /lstate.c | |
parent | a4d06736d4a66e1653599fad3df39099bf5b1276 (diff) | |
download | lua-01f1ac36b13f4fb23527785add70afe64f275944.tar.gz lua-01f1ac36b13f4fb23527785add70afe64f275944.tar.bz2 lua-01f1ac36b13f4fb23527785add70afe64f275944.zip |
`global' tables (registry, etc.) stored in proper place, not in the stack
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.92 2002/05/01 20:40:42 roberto Exp roberto $ | 2 | ** $Id: lstate.c,v 1.93 2002/05/07 17:36:56 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 | */ |
@@ -38,7 +38,7 @@ static int default_panic (lua_State *L) { | |||
38 | static void stack_init (lua_State *L, lua_State *OL) { | 38 | static void stack_init (lua_State *L, lua_State *OL) { |
39 | L->stack = luaM_newvector(OL, BASIC_STACK_SIZE, TObject); | 39 | L->stack = luaM_newvector(OL, BASIC_STACK_SIZE, TObject); |
40 | L->stacksize = BASIC_STACK_SIZE; | 40 | L->stacksize = BASIC_STACK_SIZE; |
41 | L->top = L->stack + RESERVED_STACK_PREFIX; | 41 | L->top = L->stack; |
42 | L->stack_last = L->stack+(BASIC_STACK_SIZE-EXTRA_STACK)-1; | 42 | L->stack_last = L->stack+(BASIC_STACK_SIZE-EXTRA_STACK)-1; |
43 | L->base_ci = luaM_newvector(OL, BASIC_CI_SIZE, CallInfo); | 43 | L->base_ci = luaM_newvector(OL, BASIC_CI_SIZE, CallInfo); |
44 | L->ci = L->base_ci; | 44 | L->ci = L->base_ci; |