summaryrefslogtreecommitdiffhomepage
path: root/include/stc/forward.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/stc/forward.h')
-rw-r--r--include/stc/forward.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/include/stc/forward.h b/include/stc/forward.h
index b534e48b..9eafb857 100644
--- a/include/stc/forward.h
+++ b/include/stc/forward.h
@@ -81,12 +81,17 @@ typedef union {
#define _c_cdeq_types(SELF, VAL) \
typedef VAL SELF##_value; \
- typedef struct { SELF##_value *ref, *end; } SELF##_iter; \
\
typedef struct SELF { \
- SELF##_value *_base, *data; \
- intptr_t _len, _cap; \
- } SELF
+ SELF##_value *data; \
+ intptr_t start, end, capmask; \
+ } SELF; \
+\
+ typedef struct { \
+ SELF##_value *ref; \
+ intptr_t pos; \
+ const SELF* _s; \
+ } SELF##_iter
#define _c_clist_types(SELF, VAL) \
typedef VAL SELF##_value; \