diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-08-28 14:57:04 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-08-28 14:57:04 -0300 |
commit | 9fdf73bc9a6b4c6afbfff1d8181fface6b1c6761 (patch) | |
tree | da8d97d954e5ffabf9ff275df725f1e0a3a5b3e6 /lref.h | |
parent | f1fd9b5c2c21f24d25d7813f431a3495702ebea6 (diff) | |
download | lua-9fdf73bc9a6b4c6afbfff1d8181fface6b1c6761.tar.gz lua-9fdf73bc9a6b4c6afbfff1d8181fface6b1c6761.tar.bz2 lua-9fdf73bc9a6b4c6afbfff1d8181fface6b1c6761.zip |
first version for new API
Diffstat (limited to 'lref.h')
-rw-r--r-- | lref.h | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/lref.h b/lref.h deleted file mode 100644 index 4aec948d..00000000 --- a/lref.h +++ /dev/null | |||
@@ -1,27 +0,0 @@ | |||
1 | /* | ||
2 | ** $Id: lref.h,v 1.5 1999/12/27 17:33:22 roberto Exp roberto $ | ||
3 | ** reference mechanism | ||
4 | ** See Copyright Notice in lua.h | ||
5 | */ | ||
6 | |||
7 | #ifndef lref_h | ||
8 | #define lref_h | ||
9 | |||
10 | #include "lobject.h" | ||
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 | |||
19 | struct Ref { | ||
20 | TObject o; | ||
21 | int st; /* can be LOCK, HOLD, COLLECTED, or next (for free list) */ | ||
22 | }; | ||
23 | |||
24 | |||
25 | void luaR_invalidaterefs (lua_State *L); | ||
26 | |||
27 | #endif | ||