aboutsummaryrefslogtreecommitdiff
path: root/lgc.h
diff options
context:
space:
mode:
Diffstat (limited to 'lgc.h')
-rw-r--r--lgc.h17
1 files changed, 8 insertions, 9 deletions
diff --git a/lgc.h b/lgc.h
index 7d32eab9..cc285b3e 100644
--- a/lgc.h
+++ b/lgc.h
@@ -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 @@
98LUAI_FUNC void luaC_separateudata (lua_State *L, int all); 96LUAI_FUNC void luaC_separateudata (lua_State *L, int all);
99LUAI_FUNC void luaC_freeallobjects (lua_State *L); 97LUAI_FUNC void luaC_freeallobjects (lua_State *L);
100LUAI_FUNC void luaC_step (lua_State *L); 98LUAI_FUNC void luaC_step (lua_State *L);
99LUAI_FUNC void luaC_runtilstate (lua_State *L, int validstates);
101LUAI_FUNC void luaC_fullgc (lua_State *L, int isemergency); 100LUAI_FUNC void luaC_fullgc (lua_State *L, int isemergency);
102LUAI_FUNC void luaC_link (lua_State *L, GCObject *o, lu_byte tt); 101LUAI_FUNC void luaC_link (lua_State *L, GCObject *o, lu_byte tt);
103LUAI_FUNC void luaC_linkupval (lua_State *L, UpVal *uv); 102LUAI_FUNC void luaC_linkupval (lua_State *L, UpVal *uv);