From 65199590def8459198f9460c5d975a1df22d00a8 Mon Sep 17 00:00:00 2001 From: Tyge Lovset Date: Thu, 11 Aug 2022 08:31:53 +0200 Subject: Renamed all iter members ._end to .end, to make them "public". --- include/stc/cstack.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/stc/cstack.h') diff --git a/include/stc/cstack.h b/include/stc/cstack.h index a524b71c..e1839d37 100644 --- a/include/stc/cstack.h +++ b/include/stc/cstack.h @@ -178,9 +178,9 @@ 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; } + { if (++it->ref == it->end) it->ref = NULL; } STC_INLINE _cx_iter _cx_memb(_advance)(_cx_iter it, size_t n) - { if ((it.ref += n) >= it._end) it.ref = NULL ; return it; } + { if ((it.ref += n) >= it.end) it.ref = NULL ; return it; } #include "template.h" -- cgit v1.2.3