aboutsummaryrefslogtreecommitdiff
path: root/lstate.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2015-11-02 14:01:41 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2015-11-02 14:01:41 -0200
commit33b366ec321646890780b96df96eacb558b82f6d (patch)
tree59e30d04f641a45e48f2ac7649d912bf877628fd /lstate.h
parentc5363a1b58573162ef13ba4a345bd48ad3c355d9 (diff)
downloadlua-33b366ec321646890780b96df96eacb558b82f6d.tar.gz
lua-33b366ec321646890780b96df96eacb558b82f6d.tar.bz2
lua-33b366ec321646890780b96df96eacb558b82f6d.zip
added counters for total and individual CallInfo entries (to allow
better syncronization between CallInfo size and stack size)
Diffstat (limited to 'lstate.h')
-rw-r--r--lstate.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/lstate.h b/lstate.h
index b5ecdb3c..4b4577e2 100644
--- a/lstate.h
+++ b/lstate.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lstate.h,v 2.125 2015/09/22 14:18:24 roberto Exp roberto $ 2** $Id: lstate.h,v 2.126 2015/11/02 11:43:17 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*/
@@ -78,6 +78,7 @@ typedef struct CallInfo {
78 } c; 78 } c;
79 } u; 79 } u;
80 ptrdiff_t extra; 80 ptrdiff_t extra;
81 unsigned short n; /* ordinal number in call list */
81 short nresults; /* expected number of results from this function */ 82 short nresults; /* expected number of results from this function */
82 lu_byte callstatus; 83 lu_byte callstatus;
83} CallInfo; 84} CallInfo;
@@ -149,6 +150,7 @@ typedef struct global_State {
149*/ 150*/
150struct lua_State { 151struct lua_State {
151 CommonHeader; 152 CommonHeader;
153 unsigned short nci; /* number of items in 'ci' list */
152 lu_byte status; 154 lu_byte status;
153 StkId top; /* first free slot in the stack */ 155 StkId top; /* first free slot in the stack */
154 global_State *l_G; 156 global_State *l_G;