aboutsummaryrefslogtreecommitdiff
path: root/bitmapped_patricia_tree.h
diff options
context:
space:
mode:
authorMatthias Andreas Benkard <code@mail.matthias.benkard.de>2011-12-07 20:27:10 +0100
committerMatthias Andreas Benkard <code@mail.matthias.benkard.de>2011-12-07 20:27:10 +0100
commitc2f77d08fb15feb5f0f5826c55fa525f3659d986 (patch)
treea2a0a86b4e845fa3e729e604b4a62cc9ec054ff3 /bitmapped_patricia_tree.h
parent70399f1c8cae6e9ddd43cd28ecdaf17c96274c65 (diff)
Add the option of configuring the BPT key and bitmask sizes.
Diffstat (limited to 'bitmapped_patricia_tree.h')
-rw-r--r--bitmapped_patricia_tree.h5
1 files changed, 5 insertions, 0 deletions
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,