diff options
Diffstat (limited to 'lstate.h')
-rw-r--r-- | lstate.h | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -9,6 +9,11 @@ | |||
9 | 9 | ||
10 | #include "lua.h" | 10 | #include "lua.h" |
11 | 11 | ||
12 | |||
13 | /* Some header files included here need this definition */ | ||
14 | typedef struct CallInfo CallInfo; | ||
15 | |||
16 | |||
12 | #include "lobject.h" | 17 | #include "lobject.h" |
13 | #include "ltm.h" | 18 | #include "ltm.h" |
14 | #include "lzio.h" | 19 | #include "lzio.h" |
@@ -170,7 +175,7 @@ typedef struct stringtable { | |||
170 | ** - field 'transferinfo' is used only during call/returnhooks, | 175 | ** - field 'transferinfo' is used only during call/returnhooks, |
171 | ** before the function starts or after it ends. | 176 | ** before the function starts or after it ends. |
172 | */ | 177 | */ |
173 | typedef struct CallInfo { | 178 | struct CallInfo { |
174 | StkIdRel func; /* function index in the stack */ | 179 | StkIdRel func; /* function index in the stack */ |
175 | StkIdRel top; /* top for this function */ | 180 | StkIdRel top; /* top for this function */ |
176 | struct CallInfo *previous, *next; /* dynamic call link */ | 181 | struct CallInfo *previous, *next; /* dynamic call link */ |
@@ -197,7 +202,7 @@ typedef struct CallInfo { | |||
197 | } u2; | 202 | } u2; |
198 | short nresults; /* expected number of results from this function */ | 203 | short nresults; /* expected number of results from this function */ |
199 | unsigned short callstatus; | 204 | unsigned short callstatus; |
200 | } CallInfo; | 205 | }; |
201 | 206 | ||
202 | 207 | ||
203 | /* | 208 | /* |
@@ -293,7 +298,7 @@ typedef struct global_State { | |||
293 | struct lua_State *mainthread; | 298 | struct lua_State *mainthread; |
294 | TString *memerrmsg; /* message for memory-allocation errors */ | 299 | TString *memerrmsg; /* message for memory-allocation errors */ |
295 | TString *tmname[TM_N]; /* array with tag-method names */ | 300 | TString *tmname[TM_N]; /* array with tag-method names */ |
296 | struct Table *mt[LUA_NUMTAGS]; /* metatables for basic types */ | 301 | struct Table *mt[LUA_NUMTYPES]; /* metatables for basic types */ |
297 | TString *strcache[STRCACHE_N][STRCACHE_M]; /* cache for strings in API */ | 302 | TString *strcache[STRCACHE_N][STRCACHE_M]; /* cache for strings in API */ |
298 | lua_WarnFunction warnf; /* warning function */ | 303 | lua_WarnFunction warnf; /* warning function */ |
299 | void *ud_warn; /* auxiliary data to 'warnf' */ | 304 | void *ud_warn; /* auxiliary data to 'warnf' */ |