From c2f77d08fb15feb5f0f5826c55fa525f3659d986 Mon Sep 17 00:00:00 2001 From: Matthias Andreas Benkard Date: Wed, 7 Dec 2011 20:27:10 +0100 Subject: Add the option of configuring the BPT key and bitmask sizes. --- bitmapped_patricia_tree.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'bitmapped_patricia_tree.h') diff --git a/bitmapped_patricia_tree.h b/bitmapped_patricia_tree.h index b1a3e32..f1d65c3 100644 --- a/bitmapped_patricia_tree.h +++ b/bitmapped_patricia_tree.h @@ -32,8 +32,13 @@ extern "C" { #define BPT_ENABLE_DEALLOC_HOOKS 1 +#ifdef BPT_EXPLICIT_CONFIGURATION +typedef BPT_KEY_T bpt_key_t; +typedef BPT_KEY_BITMASK_T bpt_key_bitmask_t; +#else typedef int32_t bpt_key_t; typedef int32_t bpt_key_bitmask_t; +#endif //!BPT_EXPLICIT_CONFIGURATION enum bpt_tag { BPT_LEAF, -- cgit v1.2.3