summaryrefslogtreecommitdiffhomepage
path: root/include/stc/clist.h
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2022-10-28 09:42:50 +0200
committerTyge Løvset <[email protected]>2022-10-28 09:42:50 +0200
commit0243b64f830f55b924274cbc63f5dd1ed518c26f (patch)
tree5db964f8eab0483feb4a695eed20adda75612554 /include/stc/clist.h
parent7f03a0a99daaa3df326f2904091affe55e910156 (diff)
downloadSTC-modified-0243b64f830f55b924274cbc63f5dd1ed518c26f.tar.gz
STC-modified-0243b64f830f55b924274cbc63f5dd1ed518c26f.zip
Renamed semi-internal macro (used for c++ compability) c_make => c_init.
Diffstat (limited to 'include/stc/clist.h')
-rw-r--r--include/stc/clist.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/stc/clist.h b/include/stc/clist.h
index b5939029..9c27f1ff 100644
--- a/include/stc/clist.h
+++ b/include/stc/clist.h
@@ -133,7 +133,7 @@ STC_INLINE _cx_value* _cx_memb(_emplace)(_cx_self* self, _cx_raw raw)
{ return _cx_memb(_push_back)(self, i_keyfrom(raw)); }
#endif // !_i_no_emplace
-STC_INLINE _cx_self _cx_memb(_init)(void) { return c_make(_cx_self){NULL}; }
+STC_INLINE _cx_self _cx_memb(_init)(void) { return c_init(_cx_self){NULL}; }
STC_INLINE bool _cx_memb(_reserve)(_cx_self* self, size_t n) { return true; }
STC_INLINE bool _cx_memb(_empty)(const _cx_self* self) { return self->last == NULL; }
STC_INLINE void _cx_memb(_clear)(_cx_self* self) { _cx_memb(_drop)(self); }
@@ -155,12 +155,12 @@ _cx_memb(_count)(const _cx_self* self) {
STC_INLINE _cx_iter
_cx_memb(_begin)(const _cx_self* self) {
_cx_value* head = self->last ? &self->last->next->value : NULL;
- return c_make(_cx_iter){head, &self->last, self->last};
+ return c_init(_cx_iter){head, &self->last, self->last};
}
STC_INLINE _cx_iter
_cx_memb(_end)(const _cx_self* self)
- { return c_make(_cx_iter){NULL}; }
+ { return c_init(_cx_iter){NULL}; }
STC_INLINE void
_cx_memb(_next)(_cx_iter* it) {