diff options
| author | Tyge Løvset <[email protected]> | 2023-01-27 15:09:59 +0100 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2023-01-27 15:09:59 +0100 |
| commit | 8c81c9642b5f7564f06654562d929703f2d2dd0a (patch) | |
| tree | 05a33a34d339dad8fc5a909443b6c616cb5b800d /include/stc/cvec.h | |
| parent | 5c1b1616f5a20a54c32e57b0bea49f366441356b (diff) | |
| download | STC-modified-8c81c9642b5f7564f06654562d929703f2d2dd0a.tar.gz STC-modified-8c81c9642b5f7564f06654562d929703f2d2dd0a.zip | |
(Reverted) c_COMPOUND() to c_LITERAL().
Diffstat (limited to 'include/stc/cvec.h')
| -rw-r--r-- | include/stc/cvec.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/include/stc/cvec.h b/include/stc/cvec.h index 8010aea3..0905526a 100644 --- a/include/stc/cvec.h +++ b/include/stc/cvec.h @@ -199,11 +199,11 @@ _cx_memb(_at_mut)(_cx_self* self, const size_t idx) { STC_INLINE _cx_iter _cx_memb(_begin)(const _cx_self* self) { size_t n = self->_len; - return c_COMPOUND(_cx_iter){n ? self->data : NULL, self->data + n}; + return c_LITERAL(_cx_iter){n ? self->data : NULL, self->data + n}; } STC_INLINE _cx_iter _cx_memb(_end)(const _cx_self* self) - { return c_COMPOUND(_cx_iter){NULL, self->data + self->_len}; } + { return c_LITERAL(_cx_iter){NULL, self->data + self->_len}; } STC_INLINE void _cx_memb(_next)(_cx_iter* it) { if (++it->ref == it->end) it->ref = NULL; } @@ -259,7 +259,7 @@ _cx_memb(_sort)(_cx_self* self) { STC_DEF _cx_self _cx_memb(_init)(void) { - return c_COMPOUND(_cx_self){NULL}; + return c_LITERAL(_cx_self){NULL}; } STC_DEF void @@ -328,7 +328,7 @@ _cx_memb(_insert_uninit)(_cx_self* self, _cx_value* pos, const size_t n) { memmove(pos + n, pos, (self->_len - idx)*sizeof *pos); self->_len += n; } - return c_COMPOUND(_cx_iter){pos, self->data + self->_len}; + return c_LITERAL(_cx_iter){pos, self->data + self->_len}; } STC_DEF _cx_iter @@ -348,7 +348,7 @@ _cx_memb(_erase_range_p)(_cx_self* self, _cx_value* p1, _cx_value* p2) { { i_keydrop(p); } memmove(p1, p2, (size_t)(end - p2)*sizeof *p1); self->_len -= len; - return c_COMPOUND(_cx_iter){p2 == end ? NULL : p1, end - len}; + return c_LITERAL(_cx_iter){p2 == end ? NULL : p1, end - len}; } #if !defined i_no_clone |
