diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-03-07 15:14:29 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-03-07 15:14:29 -0300 |
commit | 8f837e83b20f3c409ba187765c2bf5aefc111923 (patch) | |
tree | fdd9128cd1401155708f6f31df9dea4e0f0d51ad /lstate.c | |
parent | 6658b9588faa3dae1747f2b705e99e96c6cf0e31 (diff) | |
download | lua-8f837e83b20f3c409ba187765c2bf5aefc111923.tar.gz lua-8f837e83b20f3c409ba187765c2bf5aefc111923.tar.bz2 lua-8f837e83b20f3c409ba187765c2bf5aefc111923.zip |
using `ci->top' to control acceptable indices in C calls
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.84 2002/02/14 21:40:13 roberto Exp roberto $ | 2 | ** $Id: lstate.c,v 1.85 2002/03/05 16:22:54 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 | */ |
@@ -33,6 +33,7 @@ static void stack_init (lua_State *L, lua_State *OL) { | |||
33 | L->base_ci = luaM_newvector(OL, BASIC_CI_SIZE, CallInfo); | 33 | L->base_ci = luaM_newvector(OL, BASIC_CI_SIZE, CallInfo); |
34 | L->ci = L->base_ci; | 34 | L->ci = L->base_ci; |
35 | L->ci->base = L->top; | 35 | L->ci->base = L->top; |
36 | L->ci->top = L->top; | ||
36 | L->ci->pc = NULL; | 37 | L->ci->pc = NULL; |
37 | L->size_ci = BASIC_CI_SIZE; | 38 | L->size_ci = BASIC_CI_SIZE; |
38 | L->end_ci = L->base_ci + L->size_ci; | 39 | L->end_ci = L->base_ci + L->size_ci; |