[lib][cmpctmalloc] add some missing statics to inline
@@ -176,27 +176,27 @@ static int size_to_index_freeing(size_t size) {
return size_to_index_helper(size, &dummy, 0, 0);
}
-inline header_t *tag_as_free(void *left) {
+static inline header_t *tag_as_free(void *left) {
return (header_t *)((uintptr_t)left | 1);
}
-inline bool is_tagged_as_free(header_t *header) {
+static inline bool is_tagged_as_free(header_t *header) {
return ((uintptr_t)(header->left) & 1) != 0;
}
-inline header_t *untag(void *left) {
+static inline header_t *untag(void *left) {
return (header_t *)((uintptr_t)left & ~1);
}
-inline header_t *right_header(header_t *header) {
+static inline header_t *right_header(header_t *header) {
return (header_t *)((char *)header + header->size);
}
-inline static void set_free_list_bit(int index) {
+static inline void set_free_list_bit(int index) {
theheap.free_list_bits[index >> 5] |= (1u << (31 - (index & 0x1f)));
}
-inline static void clear_free_list_bit(int index) {
+static inline void clear_free_list_bit(int index) {
theheap.free_list_bits[index >> 5] &= ~(1u << (31 - (index & 0x1f)));
}
