summaryrefslogtreecommitdiffhomepage
path: root/include/stc/forward.h
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2022-08-10 12:59:20 +0200
committerTyge Løvset <[email protected]>2022-08-10 12:59:20 +0200
commit1756309078f4c09765bde898e50b8a3078cebc7d (patch)
tree592e82f3ee6f064e2f889d3fde065761f5308bf1 /include/stc/forward.h
parent90624d6d398ff1d0f79df3dd656c4ad0c9c498a9 (diff)
downloadSTC-modified-1756309078f4c09765bde898e50b8a3078cebc7d.tar.gz
STC-modified-1756309078f4c09765bde898e50b8a3078cebc7d.zip
Fixed cdeq, cvec, cmap and cstack: iterators .ref is now NULL when it is end(). clist and csmap/cset already has this property.
Diffstat (limited to 'include/stc/forward.h')
-rw-r--r--include/stc/forward.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/stc/forward.h b/include/stc/forward.h
index 1a85f1ed..9be399af 100644
--- a/include/stc/forward.h
+++ b/include/stc/forward.h
@@ -194,7 +194,7 @@ typedef union {
#define _c_cstack_fixed(SELF, VAL, CAP) \
typedef VAL SELF##_value; \
- typedef struct { SELF##_value *ref; } SELF##_iter; \
+ typedef struct { SELF##_value *ref, *_end; } SELF##_iter; \
typedef struct SELF { \
SELF##_value data[CAP]; \
size_t size; \