diff options
| author | Tyge Lovset <[email protected]> | 2023-04-07 22:51:45 +0200 |
|---|---|---|
| committer | Tyge Lovset <[email protected]> | 2023-04-07 22:51:45 +0200 |
| commit | 701b7af4aaf9fe3965c656c500d9200dd7c4831d (patch) | |
| tree | f94ce3f97bbed242ab5b021f641464543554cb19 /include/stc/ccommon.h | |
| parent | 13eb85e05a88633454df7b62b80737fcc9d12238 (diff) | |
| download | STC-modified-701b7af4aaf9fe3965c656c500d9200dd7c4831d.tar.gz STC-modified-701b7af4aaf9fe3965c656c500d9200dd7c4831d.zip | |
More docs updating.
Diffstat (limited to 'include/stc/ccommon.h')
| -rw-r--r-- | include/stc/ccommon.h | 2 |
1 files changed, 1 insertions, 1 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) |
