summaryrefslogtreecommitdiffhomepage
path: root/include/stc/cstack.h
diff options
context:
space:
mode:
authorTyge Lovset <[email protected]>2022-08-11 08:31:53 +0200
committerTyge Lovset <[email protected]>2022-08-11 08:31:53 +0200
commit65199590def8459198f9460c5d975a1df22d00a8 (patch)
tree640777149b2fd23ed4dd0ee2faa1924d7011d6f4 /include/stc/cstack.h
parent8b63c557e383736b617594d6c0f38956f770dc3b (diff)
downloadSTC-modified-65199590def8459198f9460c5d975a1df22d00a8.tar.gz
STC-modified-65199590def8459198f9460c5d975a1df22d00a8.zip
Renamed all iter members ._end to .end, to make them "public".
Diffstat (limited to 'include/stc/cstack.h')
-rw-r--r--include/stc/cstack.h4
1 files changed, 2 insertions, 2 deletions
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"