From 41ce960b60bbcf2c3d1a91828bd8ea7bc50a4f2d Mon Sep 17 00:00:00 2001 From: Jonathan Bradley Date: Fri, 15 Nov 2024 08:54:19 -0500 Subject: pk.h.in: add module descriptions and impl options --- pkmem.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'pkmem.h') diff --git a/pkmem.h b/pkmem.h index 5adc9ea..e0b544d 100644 --- a/pkmem.h +++ b/pkmem.h @@ -120,6 +120,10 @@ static inline void pkmem_stupid_header_warnings() { (void)stdout; } */ #endif +#ifndef PK_MAX_BUCKET_COUNT +# define PK_MAX_BUCKET_COUNT 8 +#endif + struct pk_memblock { char* data; size_t size; @@ -152,7 +156,7 @@ struct pk_membucket { bool transient; }; -static struct pk_membucket pk_buckets[8]; +static struct pk_membucket pk_buckets[PK_MAX_BUCKET_COUNT]; static int64_t pk_bucket_head = 0; #ifdef PK_MEMORY_DEBUGGER -- cgit v1.2.3