diff options
| author | Tyge Løvset <[email protected]> | 2022-09-20 09:47:33 +0200 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2022-09-20 09:47:33 +0200 |
| commit | 6d7873be4a9031ceffef3182ca8cdfa80197c8b0 (patch) | |
| tree | b8c6256cdf869f907517f7b55a81eb7e4f21b439 /include/stc/cstack.h | |
| parent | 498679cde9565add37d685e16ea863db3d014a07 (diff) | |
| download | STC-modified-6d7873be4a9031ceffef3182ca8cdfa80197c8b0.tar.gz STC-modified-6d7873be4a9031ceffef3182ca8cdfa80197c8b0.zip | |
Minor API change for fixed size cstack and cbits only.
Diffstat (limited to 'include/stc/cstack.h')
| -rw-r--r-- | include/stc/cstack.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/stc/cstack.h b/include/stc/cstack.h index da38f508..a0c6e042 100644 --- a/include/stc/cstack.h +++ b/include/stc/cstack.h @@ -52,10 +52,10 @@ STC_INLINE _cx_self _cx_memb(_init)(void) { } #ifdef i_capacity -STC_INLINE void _cx_memb(_inits)(_cx_self* self) +STC_INLINE void _cx_memb(_create)(_cx_self* self) { self->_len = 0; } #else -STC_INLINE void _cx_memb(_inits)(_cx_self* self) +STC_INLINE void _cx_memb(_create)(_cx_self* self) { self->_len = 0; self->_cap = 0; self->data = NULL; } STC_INLINE _cx_self _cx_memb(_with_capacity)(size_t cap) { |
