summaryrefslogtreecommitdiffhomepage
path: root/include/stc/clist.h
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2023-01-27 15:09:59 +0100
committerTyge Løvset <[email protected]>2023-01-27 15:09:59 +0100
commit8c81c9642b5f7564f06654562d929703f2d2dd0a (patch)
tree05a33a34d339dad8fc5a909443b6c616cb5b800d /include/stc/clist.h
parent5c1b1616f5a20a54c32e57b0bea49f366441356b (diff)
downloadSTC-modified-8c81c9642b5f7564f06654562d929703f2d2dd0a.tar.gz
STC-modified-8c81c9642b5f7564f06654562d929703f2d2dd0a.zip
(Reverted) c_COMPOUND() to c_LITERAL().
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 de32b931..fc4d8540 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_COMPOUND(_cx_self){NULL}; }
+STC_INLINE _cx_self _cx_memb(_init)(void) { return c_LITERAL(_cx_self){NULL}; }
STC_INLINE void _cx_memb(_put_n)(_cx_self* self, const _cx_raw* raw, size_t n)
{ while (n--) _cx_memb(_push_back)(self, i_keyfrom(*raw++)); }
STC_INLINE _cx_self _cx_memb(_from_n)(const _cx_raw* raw, size_t n)
@@ -161,12 +161,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_COMPOUND(_cx_iter){head, &self->last, self->last};
+ return c_LITERAL(_cx_iter){head, &self->last, self->last};
}
STC_INLINE _cx_iter
_cx_memb(_end)(const _cx_self* self)
- { return c_COMPOUND(_cx_iter){NULL}; }
+ { return c_LITERAL(_cx_iter){NULL}; }
STC_INLINE void
_cx_memb(_next)(_cx_iter* it) {