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/cdeq.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/cdeq.h')
| -rw-r--r-- | include/stc/cdeq.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/stc/cdeq.h b/include/stc/cdeq.h index befb4146..d17182b1 100644 --- a/include/stc/cdeq.h +++ b/include/stc/cdeq.h @@ -101,11 +101,11 @@ STC_INLINE void _cx_memb(_pop_front)(_cx_self* self) // == _pop() when _ 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; } @@ -345,7 +345,7 @@ _cx_memb(_insert_uninit)(_cx_self* self, _cx_value* pos, const size_t n) { self->_len += n; pos = self->data + idx; } - return c_COMPOUND(_cx_iter){pos, self->data + self->_len}; + return c_LITERAL(_cx_iter){pos, self->data + self->_len}; } STC_DEF _cx_value* @@ -377,7 +377,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 -= (size_t)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 |
