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/forward.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'include/stc/forward.h') diff --git a/include/stc/forward.h b/include/stc/forward.h index 9be399af..8a0278a5 100644 --- a/include/stc/forward.h +++ b/include/stc/forward.h @@ -57,7 +57,7 @@ typedef struct { const char* str; size_t size; } csview; typedef char csview_value; typedef union { const char *ref; - struct { csview chr; const char *_end; } u8; + struct { csview chr; const char *end; } u8; } csview_iter, cstr_iter; #define c_true(...) __VA_ARGS__ @@ -73,12 +73,12 @@ typedef union { #define _c_carr2_types(SELF, VAL) \ typedef VAL SELF##_value; \ - typedef struct { SELF##_value *ref, *_end; } SELF##_iter; \ + typedef struct { SELF##_value *ref, *end; } SELF##_iter; \ typedef struct { SELF##_value **data; size_t xdim, ydim; } SELF #define _c_carr3_types(SELF, VAL) \ typedef VAL SELF##_value; \ - typedef struct { SELF##_value *ref, *_end; } SELF##_iter; \ + typedef struct { SELF##_value *ref, *end; } SELF##_iter; \ typedef struct { SELF##_value ***data; size_t xdim, ydim, zdim; } SELF #define _c_cbox_types(SELF, VAL) \ @@ -89,7 +89,7 @@ typedef union { #define _c_cdeq_types(SELF, VAL) \ typedef VAL SELF##_value; \ - typedef struct {SELF##_value *ref, *_end; } SELF##_iter; \ + typedef struct {SELF##_value *ref, *end; } SELF##_iter; \ typedef struct {SELF##_value *_base, *data;} SELF #define _c_clist_types(SELF, VAL) \ @@ -120,7 +120,7 @@ typedef union { } SELF##_result; \ \ typedef struct { \ - SELF##_value *ref, *_end; \ + SELF##_value *ref, *end; \ uint8_t* _hx; \ } SELF##_iter; \ \ @@ -186,7 +186,7 @@ typedef union { #endif #define _c_cstack_types(SELF, VAL) \ typedef VAL SELF##_value; \ - typedef struct { SELF##_value *ref, *_end; } SELF##_iter; \ + typedef struct { SELF##_value *ref, *end; } SELF##_iter; \ typedef struct SELF { \ SELF##_value* data; \ size_t size, capacity; \ @@ -194,7 +194,7 @@ typedef union { #define _c_cstack_fixed(SELF, VAL, CAP) \ typedef VAL SELF##_value; \ - typedef struct { SELF##_value *ref, *_end; } SELF##_iter; \ + typedef struct { SELF##_value *ref, *end; } SELF##_iter; \ typedef struct SELF { \ SELF##_value data[CAP]; \ size_t size; \ @@ -209,7 +209,7 @@ typedef union { #define _c_cvec_types(SELF, VAL) \ typedef VAL SELF##_value; \ - typedef struct { SELF##_value *ref, *_end; } SELF##_iter; \ + typedef struct { SELF##_value *ref, *end; } SELF##_iter; \ typedef struct { SELF##_value *data; } SELF #endif // STC_FORWARD_H_INCLUDED -- cgit v1.2.3