Package: croaring / 0.2.66+ds-2

001-containerptr_roaring_bitmap_add-public.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
From: Alexander GQ Gerasiov <gq@debian.org>
Date: Tue, 5 Jan 2021 15:39:23 +0300
Subject: Make containerptr_roaring_bitmap_add public (used in ClickHouse).

---
 include/roaring/roaring.h | 2 ++
 src/roaring.c             | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/include/roaring/roaring.h b/include/roaring/roaring.h
index 1c34c31..c388692 100644
--- a/include/roaring/roaring.h
+++ b/include/roaring/roaring.h
@@ -765,6 +765,8 @@ void roaring_free_uint32_iterator(roaring_uint32_iterator_t *it);
  */
 uint32_t roaring_read_uint32_iterator(roaring_uint32_iterator_t *it, uint32_t* buf, uint32_t count);
 
+void *containerptr_roaring_bitmap_add(roaring_bitmap_t *r, uint32_t val, uint8_t *typecode, int *index);
+
 #ifdef __cplusplus
 }
 #endif
diff --git a/src/roaring.c b/src/roaring.c
index 533abb3..3ecb6ff 100644
--- a/src/roaring.c
+++ b/src/roaring.c
@@ -26,7 +26,7 @@ static inline bool is_frozen(const roaring_bitmap_t *r) {
 // that we can recover the container touched, which, in turn can be used to
 // accelerate some functions (when you repeatedly need to add to the same
 // container)
-static inline void *containerptr_roaring_bitmap_add(roaring_bitmap_t *r,
+void *containerptr_roaring_bitmap_add(roaring_bitmap_t *r,
                                                     uint32_t val,
                                                     uint8_t *typecode,
                                                     int *index) {