diff options
| -rw-r--r-- | cheesemap.c | 4 | ||||
| -rw-r--r-- | cheesemap.h | 9 |
2 files changed, 10 insertions, 3 deletions
diff --git a/cheesemap.c b/cheesemap.c index df09296..bdaee94 100644 --- a/cheesemap.c +++ b/cheesemap.c @@ -249,9 +249,7 @@ static bool cm_raw_find(const struct cheesemap_raw* map, out_index)) return true; - bitmask_t empty_mask = cm_group_match_empty_or_deleted(group) ^ - cm_group_repeat(CM_CTRL_DELETED); - if (empty_mask != 0) return false; + if (cm_group_match_empty(group) != 0) return false; cm_sequence_next(&seq, map->bucket_mask); } diff --git a/cheesemap.h b/cheesemap.h index 9f8f45c..423ec17 100644 --- a/cheesemap.h +++ b/cheesemap.h @@ -1,6 +1,10 @@ #ifndef CHEESEMAP #define CHEESEMAP +#ifdef __cplusplus +extern "C" { +#endif + //////////////////////////////// // options and includes // @@ -155,4 +159,9 @@ void cm_raw_iter_init(struct cheesemap_raw_iter* iter, bool cheesemap_raw_iter_next(struct cheesemap_raw_iter* iter, uintptr_t entry_size, uintptr_t* out_index); + +#ifdef __cplusplus +} +#endif + #endif |
