diff options
Diffstat (limited to 'lgc.h')
-rw-r--r-- | lgc.h | 17 |
1 files changed, 8 insertions, 9 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lgc.h,v 2.23 2009/11/18 13:13:47 roberto Exp roberto $ | 2 | ** $Id: lgc.h,v 2.24 2009/11/26 11:39:20 roberto Exp roberto $ |
3 | ** Garbage Collector | 3 | ** Garbage Collector |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -14,16 +14,14 @@ | |||
14 | /* | 14 | /* |
15 | ** Possible states of the Garbage Collector | 15 | ** Possible states of the Garbage Collector |
16 | */ | 16 | */ |
17 | #define GCSpause 0 | 17 | #define GCSpause 1 |
18 | #define GCSpropagate 1 | 18 | #define GCSpropagate 2 |
19 | #define GCSatomic 2 | 19 | #define GCSatomic 4 |
20 | #define GCSsweepstring 3 | 20 | #define GCSsweepstring 8 |
21 | #define GCSsweep 4 | 21 | #define GCSsweep 16 |
22 | #define GCSfinalize 5 | 22 | #define GCSfinalize 32 |
23 | 23 | ||
24 | 24 | ||
25 | #define issweep(g) (GCSsweepstring <= (g)->gcstate && (g)->gcstate <= GCSsweep) | ||
26 | |||
27 | 25 | ||
28 | /* | 26 | /* |
29 | ** some useful bit tricks | 27 | ** some useful bit tricks |
@@ -98,6 +96,7 @@ | |||
98 | LUAI_FUNC void luaC_separateudata (lua_State *L, int all); | 96 | LUAI_FUNC void luaC_separateudata (lua_State *L, int all); |
99 | LUAI_FUNC void luaC_freeallobjects (lua_State *L); | 97 | LUAI_FUNC void luaC_freeallobjects (lua_State *L); |
100 | LUAI_FUNC void luaC_step (lua_State *L); | 98 | LUAI_FUNC void luaC_step (lua_State *L); |
99 | LUAI_FUNC void luaC_runtilstate (lua_State *L, int validstates); | ||
101 | LUAI_FUNC void luaC_fullgc (lua_State *L, int isemergency); | 100 | LUAI_FUNC void luaC_fullgc (lua_State *L, int isemergency); |
102 | LUAI_FUNC void luaC_link (lua_State *L, GCObject *o, lu_byte tt); | 101 | LUAI_FUNC void luaC_link (lua_State *L, GCObject *o, lu_byte tt); |
103 | LUAI_FUNC void luaC_linkupval (lua_State *L, UpVal *uv); | 102 | LUAI_FUNC void luaC_linkupval (lua_State *L, UpVal *uv); |