aboutsummaryrefslogtreecommitdiff
path: root/src/keeper.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/keeper.h')
-rw-r--r--src/keeper.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/keeper.h b/src/keeper.h
index d30aa36..7c55809 100644
--- a/src/keeper.h
+++ b/src/keeper.h
@@ -21,6 +21,7 @@ typedef struct s_Keeper Keeper;
21 21
22struct s_Keepers 22struct s_Keepers
23{ 23{
24 int gc_threshold;
24 int nb_keepers; 25 int nb_keepers;
25 Keeper keeper_array[1]; 26 Keeper keeper_array[1];
26}; 27};
@@ -29,12 +30,12 @@ typedef struct s_Keepers Keepers;
29void init_keepers( Universe* U, lua_State* L); 30void init_keepers( Universe* U, lua_State* L);
30void close_keepers( Universe* U); 31void close_keepers( Universe* U);
31 32
32Keeper* which_keeper( Keepers* keepers_, ptrdiff_t magic_); 33Keeper* which_keeper( Keepers* keepers_, uintptr_t magic_);
33Keeper* keeper_acquire( Keepers* keepers_, ptrdiff_t magic_); 34Keeper* keeper_acquire( Keepers* keepers_, uintptr_t magic_);
34#define KEEPER_MAGIC_SHIFT 3 35#define KEEPER_MAGIC_SHIFT 3
35void keeper_release( Keeper* K); 36void keeper_release( Keeper* K_);
36void keeper_toggle_nil_sentinels( lua_State* L, int val_i_, LookupMode const mode_); 37void keeper_toggle_nil_sentinels( lua_State* L, int val_i_, LookupMode const mode_);
37int keeper_push_linda_storage( Universe* U, lua_State* L, void* ptr_, ptrdiff_t magic_); 38int keeper_push_linda_storage( Universe* U, lua_State* L, void* ptr_, uintptr_t magic_);
38 39
39// crc64/we of string "NIL_SENTINEL" generated at http://www.nitrxgen.net/hashgen/ 40// crc64/we of string "NIL_SENTINEL" generated at http://www.nitrxgen.net/hashgen/
40static DECLARE_CONST_UNIQUE_KEY( NIL_SENTINEL, 0x7eaafa003a1d11a1); 41static DECLARE_CONST_UNIQUE_KEY( NIL_SENTINEL, 0x7eaafa003a1d11a1);