summaryrefslogtreecommitdiffhomepage
path: root/include/stc/cstack.h
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2022-09-20 09:47:33 +0200
committerTyge Løvset <[email protected]>2022-09-20 09:47:33 +0200
commit6d7873be4a9031ceffef3182ca8cdfa80197c8b0 (patch)
treeb8c6256cdf869f907517f7b55a81eb7e4f21b439 /include/stc/cstack.h
parent498679cde9565add37d685e16ea863db3d014a07 (diff)
downloadSTC-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.h4
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) {