summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorTyge Lovset <[email protected]>2023-04-07 22:51:45 +0200
committerTyge Lovset <[email protected]>2023-04-07 22:51:45 +0200
commit701b7af4aaf9fe3965c656c500d9200dd7c4831d (patch)
treef94ce3f97bbed242ab5b021f641464543554cb19 /include
parent13eb85e05a88633454df7b62b80737fcc9d12238 (diff)
downloadSTC-modified-701b7af4aaf9fe3965c656c500d9200dd7c4831d.tar.gz
STC-modified-701b7af4aaf9fe3965c656c500d9200dd7c4831d.zip
More docs updating.
Diffstat (limited to 'include')
-rw-r--r--include/stc/ccommon.h2
-rw-r--r--include/stc/extend.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/stc/ccommon.h b/include/stc/ccommon.h
index 362b09ce..24ad59f9 100644
--- a/include/stc/ccommon.h
+++ b/include/stc/ccommon.h
@@ -182,7 +182,7 @@ STC_INLINE char* cstrnstrn(const char *str, const char *needle,
for (C##_iter it = start, *_endref = (C##_iter*)(finish).ref \
; it.ref != (C##_value*)_endref; C##_next(&it))
-#define c_foreach_r(it, C, cnt) \
+#define c_foreach_rv(it, C, cnt) \
for (C##_iter it = {.ref=C##_end(&cnt).end - 1, .end=(cnt).data - 1} \
; it.ref != it.end; --it.ref)
diff --git a/include/stc/extend.h b/include/stc/extend.h
index a8cb5f5b..cbfc4a12 100644
--- a/include/stc/extend.h
+++ b/include/stc/extend.h
@@ -50,7 +50,7 @@
#endif
typedef struct {
- i_extend;
+ i_extend
i_type get;
} c_PASTE(i_type, Ext);