diff options
| author | Tyge Løvset <[email protected]> | 2022-10-28 09:42:50 +0200 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2022-10-28 09:42:50 +0200 |
| commit | 0243b64f830f55b924274cbc63f5dd1ed518c26f (patch) | |
| tree | 5db964f8eab0483feb4a695eed20adda75612554 /include/stc/cdeq.h | |
| parent | 7f03a0a99daaa3df326f2904091affe55e910156 (diff) | |
| download | STC-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/cdeq.h')
| -rw-r--r-- | include/stc/cdeq.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/include/stc/cdeq.h b/include/stc/cdeq.h index 2b8513e1..302351ac 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 = cdeq_rep_(self)->size; - return c_make(_cx_iter){n ? self->data : NULL, self->data + n}; + return c_init(_cx_iter){n ? self->data : NULL, self->data + n}; } STC_INLINE _cx_iter _cx_memb(_end)(const _cx_self* self) - { return c_make(_cx_iter){NULL, self->data + cdeq_rep_(self)->size}; } + { return c_init(_cx_iter){NULL, self->data + cdeq_rep_(self)->size}; } STC_INLINE void _cx_memb(_next)(_cx_iter* it) { if (++it->ref == it->end) it->ref = NULL; } @@ -216,7 +216,7 @@ static struct cdeq_rep _cdeq_sentinel = {0, 0}; STC_DEF _cx_self _cx_memb(_init)(void) { _cx_value *b = (_cx_value *) _cdeq_sentinel.base; - return c_make(_cx_self){b, b}; + return c_init(_cx_self){b, b}; } STC_DEF void @@ -366,7 +366,7 @@ _cx_memb(_insert_uninit)(_cx_self* self, _cx_value* pos, const size_t n) { r->size += n; pos = self->data + idx; } - return c_make(_cx_iter){pos, self->data + r->size}; + return c_init(_cx_iter){pos, self->data + r->size}; } STC_DEF _cx_value* @@ -399,7 +399,7 @@ _cx_memb(_erase_range_p)(_cx_self* self, _cx_value* p1, _cx_value* p2) { { i_keydrop(p); } memmove(p1, p2, (end - p2) * sizeof *p1); r->size -= len; - return c_make(_cx_iter){p2 == end ? NULL : p1, end - len}; + return c_init(_cx_iter){p2 == end ? NULL : p1, end - len}; } #if !defined _i_no_clone |
