diff options
Diffstat (limited to 'lstate.h')
| -rw-r--r-- | lstate.h | 12 |
1 files changed, 2 insertions, 10 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lstate.h,v 1.20 1999/10/04 17:51:04 roberto Exp roberto $ | 2 | ** $Id: lstate.h,v 1.21 1999/11/04 17:22:26 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 | */ |
| @@ -14,8 +14,6 @@ | |||
| 14 | #include "luadebug.h" | 14 | #include "luadebug.h" |
| 15 | 15 | ||
| 16 | 16 | ||
| 17 | #define GARBAGE_BLOCK 150 | ||
| 18 | |||
| 19 | 17 | ||
| 20 | typedef int StkId; /* index to stack elements */ | 18 | typedef int StkId; /* index to stack elements */ |
| 21 | 19 | ||
| @@ -50,13 +48,6 @@ typedef struct stringtable { | |||
| 50 | } stringtable; | 48 | } stringtable; |
| 51 | 49 | ||
| 52 | 50 | ||
| 53 | enum Status {LOCK, HOLD, FREE, COLLECTED}; | ||
| 54 | |||
| 55 | struct ref { | ||
| 56 | TObject o; | ||
| 57 | enum Status status; | ||
| 58 | }; | ||
| 59 | |||
| 60 | 51 | ||
| 61 | struct lua_State { | 52 | struct lua_State { |
| 62 | /* thread-specific state */ | 53 | /* thread-specific state */ |
| @@ -82,6 +73,7 @@ struct lua_State { | |||
| 82 | int last_tag; /* last used tag in IMtable */ | 73 | int last_tag; /* last used tag in IMtable */ |
| 83 | struct ref *refArray; /* locked objects */ | 74 | struct ref *refArray; /* locked objects */ |
| 84 | int refSize; /* size of refArray */ | 75 | int refSize; /* size of refArray */ |
| 76 | int refFree; /* list of free positions in refArray */ | ||
| 85 | unsigned long GCthreshold; | 77 | unsigned long GCthreshold; |
| 86 | unsigned long nblocks; /* number of 'blocks' currently allocated */ | 78 | unsigned long nblocks; /* number of 'blocks' currently allocated */ |
| 87 | }; | 79 | }; |
