summaryrefslogtreecommitdiff
path: root/lua/lgc.h
diff options
context:
space:
mode:
authorniemeyer <devnull@localhost>2004-03-16 21:58:25 +0000
committerniemeyer <devnull@localhost>2004-03-16 21:58:25 +0000
commit73260d956c54a3d95aa7d367c09ed3e2cb2a2a00 (patch)
tree420516b3d6568f1e09364f6fd59c6c1849da0b43 /lua/lgc.h
parent55f77d61d72a3993436db9a8eefec9eaa7fb61ae (diff)
downloadlibrpm-tizen-73260d956c54a3d95aa7d367c09ed3e2cb2a2a00.tar.gz
librpm-tizen-73260d956c54a3d95aa7d367c09ed3e2cb2a2a00.tar.bz2
librpm-tizen-73260d956c54a3d95aa7d367c09ed3e2cb2a2a00.zip
- Implemented support for internal Lua scripts.
- Implemented %pretrans and %posttrans script slots. Changed files: Makefile.am configure.ac build/pack.c build/parseScript.c build/parseSpec.c build/rpmbuild.h build/rpmspec.h lib/Makefile.am lib/psm.c lib/rpmlib.h lib/rpmlibprov.c lib/rpmts.c lib/rpmts.h lib/transaction.c Added files: lib/rpmlua.c lib/rpmlua.h lua/* CVS patchset: 7175 CVS date: 2004/03/16 21:58:25
Diffstat (limited to 'lua/lgc.h')
-rw-r--r--lua/lgc.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/lua/lgc.h b/lua/lgc.h
new file mode 100644
index 000000000..a8eb3b813
--- /dev/null
+++ b/lua/lgc.h
@@ -0,0 +1,25 @@
+/*
+** $Id: lgc.h,v 1.1 2004/03/16 21:58:30 niemeyer Exp $
+** Garbage Collector
+** See Copyright Notice in lua.h
+*/
+
+#ifndef lgc_h
+#define lgc_h
+
+
+#include "lobject.h"
+
+
+#define luaC_checkGC(L) { lua_assert(!(L->ci->state & CI_CALLING)); \
+ if (G(L)->nblocks >= G(L)->GCthreshold) luaC_collectgarbage(L); }
+
+
+void luaC_separateudata (lua_State *L);
+void luaC_callGCTM (lua_State *L);
+void luaC_sweep (lua_State *L, int all);
+void luaC_collectgarbage (lua_State *L);
+void luaC_link (lua_State *L, GCObject *o, lu_byte tt);
+
+
+#endif