diff options
| author | Jonathan Bradley <jcb@pikum.xyz> | 2024-11-15 08:54:19 -0500 |
|---|---|---|
| committer | Jonathan Bradley <jcb@pikum.xyz> | 2024-11-15 09:37:14 -0500 |
| commit | 41ce960b60bbcf2c3d1a91828bd8ea7bc50a4f2d (patch) | |
| tree | bdb958d078212ad678e21446b61066da175b1de7 /pkmem.h | |
| parent | beb4e413fec775f4c5a2837644c51071e9fc86bf (diff) | |
pk.h.in: add module descriptions and impl options
Diffstat (limited to 'pkmem.h')
| -rw-r--r-- | pkmem.h | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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 |
