diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1996-04-22 15:00:37 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1996-04-22 15:00:37 -0300 |
commit | 0ef5cf22891c9d34a88ccc5d89eb0ed82b004471 (patch) | |
tree | 1a095acefa978d5a41f32ff7d0fef58a642aa66c /fallback.h | |
parent | fed9408ab51a4be5ff84450ad47d1e0cdaed97bc (diff) | |
download | lua-0ef5cf22891c9d34a88ccc5d89eb0ed82b004471.tar.gz lua-0ef5cf22891c9d34a88ccc5d89eb0ed82b004471.tar.bz2 lua-0ef5cf22891c9d34a88ccc5d89eb0ed82b004471.zip |
lock mechanism seperseded by the REFERENCE mechanism.
Diffstat (limited to 'fallback.h')
-rw-r--r-- | fallback.h | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -1,10 +1,11 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: fallback.h,v 1.10 1995/10/17 11:52:38 roberto Exp roberto $ | 2 | ** $Id: fallback.h,v 1.11 1996/01/30 15:25:23 roberto Exp roberto $ |
3 | */ | 3 | */ |
4 | 4 | ||
5 | #ifndef fallback_h | 5 | #ifndef fallback_h |
6 | #define fallback_h | 6 | #define fallback_h |
7 | 7 | ||
8 | #include "lua.h" | ||
8 | #include "opcode.h" | 9 | #include "opcode.h" |
9 | 10 | ||
10 | extern struct FB { | 11 | extern struct FB { |
@@ -26,9 +27,10 @@ extern struct FB { | |||
26 | #define FB_GETGLOBAL 9 | 27 | #define FB_GETGLOBAL 9 |
27 | 28 | ||
28 | void luaI_setfallback (void); | 29 | void luaI_setfallback (void); |
29 | int luaI_lock (Object *object); | 30 | lua_Reference luaI_ref (Object *object, int lock); |
30 | Object *luaI_getlocked (int ref); | 31 | Object *luaI_getref (lua_Reference ref); |
31 | void luaI_travlock (int (*fn)(Object *)); | 32 | void luaI_travlock (int (*fn)(Object *)); |
33 | void luaI_invalidaterefs (void); | ||
32 | char *luaI_travfallbacks (int (*fn)(Object *)); | 34 | char *luaI_travfallbacks (int (*fn)(Object *)); |
33 | 35 | ||
34 | #endif | 36 | #endif |