summaryrefslogtreecommitdiffhomepage
path: root/include/stc/forward.h
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2022-09-10 21:34:52 +0200
committerTyge Løvset <[email protected]>2022-09-10 21:34:52 +0200
commitd6a4bdb81312d5e3b1894d261932002b57f4c830 (patch)
tree3d512063d89d933397abf337d24bd7198ce8ded9 /include/stc/forward.h
parentab073505ad044e95cf83cc89effe992707a02c4d (diff)
downloadSTC-modified-d6a4bdb81312d5e3b1894d261932002b57f4c830.tar.gz
STC-modified-d6a4bdb81312d5e3b1894d261932002b57f4c830.zip
Internal renamings to discourage use of private struct fields.
Diffstat (limited to 'include/stc/forward.h')
-rw-r--r--include/stc/forward.h6
1 files changed, 3 insertions, 3 deletions
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) \