From 6d7873be4a9031ceffef3182ca8cdfa80197c8b0 Mon Sep 17 00:00:00 2001 From: Tyge Løvset Date: Tue, 20 Sep 2022 09:47:33 +0200 Subject: Minor API change for fixed size cstack and cbits only. --- include/stc/cbits.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/stc/cbits.h') diff --git a/include/stc/cbits.h b/include/stc/cbits.h index f6f57bcb..06871934 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_make(cbits){NULL}; } -STC_INLINE void cbits_inits(cbits* self) { self->data64 = NULL; self->_size = 0; } +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_make(i_type){0}; } -STC_INLINE void _i_memb(_inits)(i_type* self) {} +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; } STC_INLINE i_type _i_memb(_move)(i_type* self) { return *self; } -- cgit v1.2.3