aboutsummaryrefslogtreecommitdiff
path: root/lstate.h
diff options
context:
space:
mode:
Diffstat (limited to 'lstate.h')
-rw-r--r--lstate.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/lstate.h b/lstate.h
index 2e907818..8bf6600e 100644
--- a/lstate.h
+++ b/lstate.h
@@ -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 */
14typedef 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"
@@ -169,7 +174,7 @@ typedef struct stringtable {
169** - field 'transferinfo' is used only during call/returnhooks, 174** - field 'transferinfo' is used only during call/returnhooks,
170** before the function starts or after it ends. 175** before the function starts or after it ends.
171*/ 176*/
172typedef struct CallInfo { 177struct CallInfo {
173 StkIdRel func; /* function index in the stack */ 178 StkIdRel func; /* function index in the stack */
174 StkIdRel top; /* top for this function */ 179 StkIdRel top; /* top for this function */
175 struct CallInfo *previous, *next; /* dynamic call link */ 180 struct CallInfo *previous, *next; /* dynamic call link */
@@ -196,7 +201,7 @@ typedef struct CallInfo {
196 } u2; 201 } u2;
197 short nresults; /* expected number of results from this function */ 202 short nresults; /* expected number of results from this function */
198 unsigned short callstatus; 203 unsigned short callstatus;
199} CallInfo; 204};
200 205
201 206
202/* 207/*
@@ -291,7 +296,7 @@ typedef struct global_State {
291 struct lua_State *mainthread; 296 struct lua_State *mainthread;
292 TString *memerrmsg; /* message for memory-allocation errors */ 297 TString *memerrmsg; /* message for memory-allocation errors */
293 TString *tmname[TM_N]; /* array with tag-method names */ 298 TString *tmname[TM_N]; /* array with tag-method names */
294 struct Table *mt[LUA_NUMTAGS]; /* metatables for basic types */ 299 struct Table *mt[LUA_NUMTYPES]; /* metatables for basic types */
295 TString *strcache[STRCACHE_N][STRCACHE_M]; /* cache for strings in API */ 300 TString *strcache[STRCACHE_N][STRCACHE_M]; /* cache for strings in API */
296 lua_WarnFunction warnf; /* warning function */ 301 lua_WarnFunction warnf; /* warning function */
297 void *ud_warn; /* auxiliary data to 'warnf' */ 302 void *ud_warn; /* auxiliary data to 'warnf' */