diff options
| author | Tyge Løvset <[email protected]> | 2023-01-27 15:09:59 +0100 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2023-01-27 15:09:59 +0100 |
| commit | 8c81c9642b5f7564f06654562d929703f2d2dd0a (patch) | |
| tree | 05a33a34d339dad8fc5a909443b6c616cb5b800d /include/stc/cbits.h | |
| parent | 5c1b1616f5a20a54c32e57b0bea49f366441356b (diff) | |
| download | STC-modified-8c81c9642b5f7564f06654562d929703f2d2dd0a.tar.gz STC-modified-8c81c9642b5f7564f06654562d929703f2d2dd0a.zip | |
(Reverted) c_COMPOUND() to c_LITERAL().
Diffstat (limited to 'include/stc/cbits.h')
| -rw-r--r-- | include/stc/cbits.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/stc/cbits.h b/include/stc/cbits.h index b0cb7a9c..232be16b 100644 --- a/include/stc/cbits.h +++ b/include/stc/cbits.h @@ -123,7 +123,7 @@ STC_INLINE bool _cbits_disjoint(const uint64_t* set, const uint64_t* other, cons struct { uint64_t *data64; size_t _size; } typedef i_type; -STC_INLINE cbits cbits_init(void) { return c_COMPOUND(cbits){NULL}; } +STC_INLINE cbits cbits_init(void) { return c_LITERAL(cbits){NULL}; } STC_INLINE void cbits_create(cbits* self) { self->data64 = NULL; self->_size = 0; } STC_INLINE void cbits_drop(cbits* self) { c_FREE(self->data64); } STC_INLINE size_t cbits_size(const cbits* self) { return self->_size; } @@ -195,7 +195,7 @@ STC_INLINE cbits cbits_with_pattern(const size_t size, const uint64_t pattern) { struct { uint64_t data64[(i_capacity - 1)/64 + 1]; } typedef i_type; -STC_INLINE i_type _i_memb(_init)(void) { return c_COMPOUND(i_type){0}; } +STC_INLINE i_type _i_memb(_init)(void) { return c_LITERAL(i_type){0}; } STC_INLINE void _i_memb(_create)(i_type* self) {} STC_INLINE void _i_memb(_drop)(i_type* self) {} STC_INLINE size_t _i_memb(_size)(const i_type* self) { return i_capacity; } |
