summaryrefslogtreecommitdiffhomepage
path: root/include/stc/cdeq.h
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2022-12-19 09:04:23 +0100
committerTyge Løvset <[email protected]>2022-12-19 09:04:23 +0100
commit1d4ad83d6f3388982cb0aeadbc9815b4776df504 (patch)
tree6d0d389219644b127eaa83c8a54ccd93deef96b7 /include/stc/cdeq.h
parent26a75a218a115a10cee82534be568a606c83dbb2 (diff)
downloadSTC-modified-1d4ad83d6f3388982cb0aeadbc9815b4776df504.tar.gz
STC-modified-1d4ad83d6f3388982cb0aeadbc9815b4776df504.zip
Renames:
cstr_null => cstr_NULL csview_null => csview_NULL cstr_npos => c_NPOS csview_npos => c_NPOS c_ARGsv(sv) => c_ARGSV(sv) c_init(x) => c_INIT(x)
Diffstat (limited to 'include/stc/cdeq.h')
-rw-r--r--include/stc/cdeq.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/stc/cdeq.h b/include/stc/cdeq.h
index 11bc82d2..a8a704b4 100644
--- a/include/stc/cdeq.h
+++ b/include/stc/cdeq.h
@@ -99,11 +99,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_init(_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_init(_cx_iter){NULL, self->data + self->_len}; }
+ { return c_INIT(_cx_iter){NULL, self->data + self->_len}; }
STC_INLINE void _cx_memb(_next)(_cx_iter* it)
{ if (++it->ref == it->end) it->ref = NULL; }
@@ -343,7 +343,7 @@ _cx_memb(_insert_uninit)(_cx_self* self, _cx_value* pos, const size_t n) {
self->_len += n;
pos = self->data + idx;
}
- return c_init(_cx_iter){pos, self->data + self->_len};
+ return c_INIT(_cx_iter){pos, self->data + self->_len};
}
STC_DEF _cx_value*
@@ -375,7 +375,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_init(_cx_iter){p2 == end ? NULL : p1, end - len};
+ return c_INIT(_cx_iter){p2 == end ? NULL : p1, end - len};
}
#if !defined i_no_clone