diff options
Diffstat (limited to 'src/keeper.h')
-rw-r--r-- | src/keeper.h | 9 |
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 | ||
22 | struct s_Keepers | 22 | struct 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; | |||
29 | void init_keepers( Universe* U, lua_State* L); | 30 | void init_keepers( Universe* U, lua_State* L); |
30 | void close_keepers( Universe* U); | 31 | void close_keepers( Universe* U); |
31 | 32 | ||
32 | Keeper* which_keeper( Keepers* keepers_, ptrdiff_t magic_); | 33 | Keeper* which_keeper( Keepers* keepers_, uintptr_t magic_); |
33 | Keeper* keeper_acquire( Keepers* keepers_, ptrdiff_t magic_); | 34 | Keeper* keeper_acquire( Keepers* keepers_, uintptr_t magic_); |
34 | #define KEEPER_MAGIC_SHIFT 3 | 35 | #define KEEPER_MAGIC_SHIFT 3 |
35 | void keeper_release( Keeper* K); | 36 | void keeper_release( Keeper* K_); |
36 | void keeper_toggle_nil_sentinels( lua_State* L, int val_i_, LookupMode const mode_); | 37 | void keeper_toggle_nil_sentinels( lua_State* L, int val_i_, LookupMode const mode_); |
37 | int keeper_push_linda_storage( Universe* U, lua_State* L, void* ptr_, ptrdiff_t magic_); | 38 | int 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/ |
40 | static DECLARE_CONST_UNIQUE_KEY( NIL_SENTINEL, 0x7eaafa003a1d11a1); | 41 | static DECLARE_CONST_UNIQUE_KEY( NIL_SENTINEL, 0x7eaafa003a1d11a1); |