diff options
Diffstat (limited to 'lstate.h')
-rw-r--r-- | lstate.h | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lstate.h,v 1.9 1998/06/02 20:37:04 roberto Exp roberto $ | 2 | ** $Id: lstate.h,v 1.10 1998/06/19 16:14:09 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 | */ |
@@ -7,6 +7,8 @@ | |||
7 | #ifndef lstate_h | 7 | #ifndef lstate_h |
8 | #define lstate_h | 8 | #define lstate_h |
9 | 9 | ||
10 | #include <setjmp.h> | ||
11 | |||
10 | #include "lobject.h" | 12 | #include "lobject.h" |
11 | #include "lua.h" | 13 | #include "lua.h" |
12 | 14 | ||
@@ -39,9 +41,11 @@ typedef struct { | |||
39 | } stringtable; | 41 | } stringtable; |
40 | 42 | ||
41 | 43 | ||
44 | enum Status {LOCK, HOLD, FREE, COLLECTED}; | ||
45 | |||
42 | struct ref { | 46 | struct ref { |
43 | TObject o; | 47 | TObject o; |
44 | enum {LOCK, HOLD, FREE, COLLECTED} status; | 48 | enum Status status; |
45 | }; | 49 | }; |
46 | 50 | ||
47 | 51 | ||
@@ -49,7 +53,7 @@ struct lua_State { | |||
49 | /* thread-specific state */ | 53 | /* thread-specific state */ |
50 | struct Stack stack; /* Lua stack */ | 54 | struct Stack stack; /* Lua stack */ |
51 | struct C_Lua_Stack Cstack; /* C2lua struct */ | 55 | struct C_Lua_Stack Cstack; /* C2lua struct */ |
52 | void *errorJmp; /* current error recover point */ | 56 | jmp_buf *errorJmp; /* current error recover point */ |
53 | char *Mbuffer; /* global buffer */ | 57 | char *Mbuffer; /* global buffer */ |
54 | char *Mbuffbase; /* current first position of Mbuffer */ | 58 | char *Mbuffbase; /* current first position of Mbuffer */ |
55 | int Mbuffsize; /* size of Mbuffer */ | 59 | int Mbuffsize; /* size of Mbuffer */ |