From d6a4bdb81312d5e3b1894d261932002b57f4c830 Mon Sep 17 00:00:00 2001 From: Tyge Løvset Date: Sat, 10 Sep 2022 21:34:52 +0200 Subject: Internal renamings to discourage use of private struct fields. --- include/stc/forward.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include/stc/forward.h') diff --git a/include/stc/forward.h b/include/stc/forward.h index 264d6939..167d1539 100644 --- a/include/stc/forward.h +++ b/include/stc/forward.h @@ -189,7 +189,7 @@ typedef union { typedef struct { SELF##_value *ref, *end; } SELF##_iter; \ typedef struct SELF { \ SELF##_value* data; \ - size_t size, capacity; \ + size_t _len, _cap; \ } SELF #define _c_cstack_fixed(SELF, VAL, CAP) \ @@ -197,14 +197,14 @@ typedef union { typedef struct { SELF##_value *ref, *end; } SELF##_iter; \ typedef struct SELF { \ SELF##_value data[CAP]; \ - size_t size; \ + size_t _len; \ } SELF #define _c_cpque_types(SELF, VAL) \ typedef VAL SELF##_value; \ typedef struct SELF { \ SELF##_value* data; \ - size_t size, capacity; \ + size_t _len, _cap; \ } SELF #define _c_cvec_types(SELF, VAL) \ -- cgit v1.2.3