diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1998-06-24 10:33:00 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1998-06-24 10:33:00 -0300 |
| commit | 468fbdbde749d5fe221adebf115f9594067b8da4 (patch) | |
| tree | 675a310082a7fa86af2818c49606060d1c422a97 /lstate.h | |
| parent | eb45f8b63166ac06330dbbd2b7c9224e4db9e2ca (diff) | |
| download | lua-468fbdbde749d5fe221adebf115f9594067b8da4.tar.gz lua-468fbdbde749d5fe221adebf115f9594067b8da4.tar.bz2 lua-468fbdbde749d5fe221adebf115f9594067b8da4.zip | |
details
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 */ |
