aboutsummaryrefslogtreecommitdiff
path: root/lstate.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2017-11-03 10:12:30 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2017-11-03 10:12:30 -0200
commit54eb35a8aa0f60265cf1b4764beabe1199d66f42 (patch)
tree83bc4049d312bdbe0b8e78ed1745839fcf9a5a03 /lstate.c
parentba36180fd7b68341ad57e0fbe7a55cdfb334908d (diff)
downloadlua-54eb35a8aa0f60265cf1b4764beabe1199d66f42.tar.gz
lua-54eb35a8aa0f60265cf1b4764beabe1199d66f42.tar.bz2
lua-54eb35a8aa0f60265cf1b4764beabe1199d66f42.zip
more fields moved out of 'CallInfo'
Diffstat (limited to 'lstate.c')
-rw-r--r--lstate.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lstate.c b/lstate.c
index c4305ed8..8e3177ca 100644
--- a/lstate.c
+++ b/lstate.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lstate.c,v 2.142 2017/10/11 12:38:45 roberto Exp roberto $ 2** $Id: lstate.c,v 2.143 2017/10/31 17:54:35 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*/
@@ -152,12 +152,12 @@ static void stack_init (lua_State *L1, lua_State *L) {
152 /* initialize first ci */ 152 /* initialize first ci */
153 ci = &L1->base_ci; 153 ci = &L1->base_ci;
154 ci->next = ci->previous = NULL; 154 ci->next = ci->previous = NULL;
155 ci->callstatus = 0;
156 L1->func = ci->func = L1->top; 155 L1->func = ci->func = L1->top;
157 L1->func->stkci.previous = 0; /* end of linked list */ 156 L1->func->stkci.previous = 0; /* end of linked list */
157 L1->func->stkci.framesize = LUA_MINSTACK + 1;
158 callstatus(L1->func) = 0;
158 setnilvalue(s2v(L1->top)); /* 'function' entry for this 'ci' */ 159 setnilvalue(s2v(L1->top)); /* 'function' entry for this 'ci' */
159 L1->top++; 160 L1->top++;
160 ci->top = L1->top + LUA_MINSTACK;
161 L1->ci = ci; 161 L1->ci = ci;
162} 162}
163 163