diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2015-11-02 14:01:41 -0200 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2015-11-02 14:01:41 -0200 |
| commit | 33b366ec321646890780b96df96eacb558b82f6d (patch) | |
| tree | 59e30d04f641a45e48f2ac7649d912bf877628fd /lstate.h | |
| parent | c5363a1b58573162ef13ba4a345bd48ad3c355d9 (diff) | |
| download | lua-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.h | 4 |
1 files changed, 3 insertions, 1 deletions
| @@ -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 | */ |
| 150 | struct lua_State { | 151 | struct 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; |
