aboutsummaryrefslogtreecommitdiff
path: root/lref.h
diff options
context:
space:
mode:
Diffstat (limited to 'lref.h')
-rw-r--r--lref.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/lref.h b/lref.h
index 60e14e85..180daab0 100644
--- a/lref.h
+++ b/lref.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: $ 2** $Id: lref.h,v 1.1 1999/10/04 17:50:24 roberto Exp roberto $
3** REF mechanism 3** REF mechanism
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -9,6 +9,19 @@
9 9
10#include "lobject.h" 10#include "lobject.h"
11 11
12
13#define NONEXT -1 /* to end the free list */
14#define HOLD -2
15#define COLLECTED -3
16#define LOCK -4
17
18
19struct ref {
20 TObject o;
21 int st; /* can be LOCK, HOLD, COLLECTED, or next (for free list) */
22};
23
24
12int luaR_ref (const TObject *o, int lock); 25int luaR_ref (const TObject *o, int lock);
13const TObject *luaR_getref (int ref); 26const TObject *luaR_getref (int ref);
14void luaR_invalidaterefs (void); 27void luaR_invalidaterefs (void);