summaryrefslogtreecommitdiffhomepage
path: root/include/stc/cstack.h
diff options
context:
space:
mode:
authorTyge Lovset <[email protected]>2022-08-11 00:05:39 +0200
committerTyge Lovset <[email protected]>2022-08-11 00:05:39 +0200
commit35f63cb6d76f47a00daa5929808d75f715566657 (patch)
tree3be2f910275e37510530d28f20b3f74952c5877b /include/stc/cstack.h
parent0604d29a95d77f5dc9aeb4813e126a3831062648 (diff)
downloadSTC-modified-35f63cb6d76f47a00daa5929808d75f715566657.tar.gz
STC-modified-35f63cb6d76f47a00daa5929808d75f715566657.zip
Code formatting only.
Diffstat (limited to 'include/stc/cstack.h')
-rw-r--r--include/stc/cstack.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/include/stc/cstack.h b/include/stc/cstack.h
index 811479c4..a524b71c 100644
--- a/include/stc/cstack.h
+++ b/include/stc/cstack.h
@@ -169,15 +169,18 @@ STC_INLINE i_keyraw _cx_memb(_value_toraw)(const _cx_value* val)
{ return i_keyto(val); }
#endif // !_i_no_clone
-STC_INLINE _cx_iter _cx_memb(_begin)(const _cx_self* self)
- { return c_make(_cx_iter){self->size ? (_cx_value*)self->data : NULL, (_cx_value*)self->data + self->size}; }
+STC_INLINE _cx_iter _cx_memb(_begin)(const _cx_self* self) {
+ return c_make(_cx_iter){self->size ? (_cx_value*)self->data : NULL,
+ (_cx_value*)self->data + self->size};
+}
STC_INLINE _cx_iter _cx_memb(_end)(const _cx_self* self)
{ return c_make(_cx_iter){NULL, (_cx_value*)self->data + self->size}; }
-STC_INLINE void _cx_memb(_next)(_cx_iter* it) { if (++it->ref == it->_end) it->ref = NULL; }
+STC_INLINE void _cx_memb(_next)(_cx_iter* it)
+ { if (++it->ref == it->_end) it->ref = NULL; }
-STC_INLINE _cx_iter _cx_memb(_advance)(_cx_iter it, size_t offs)
- { if ((it.ref += offs) >= it._end) it.ref = NULL ; return it; }
+STC_INLINE _cx_iter _cx_memb(_advance)(_cx_iter it, size_t n)
+ { if ((it.ref += n) >= it._end) it.ref = NULL ; return it; }
#include "template.h"