summaryrefslogtreecommitdiffhomepage
path: root/include/stc/cregex.h
diff options
context:
space:
mode:
authorTyge Lovset <[email protected]>2022-08-11 08:50:36 +0200
committerTyge Lovset <[email protected]>2022-08-11 08:50:36 +0200
commitf7fbc7727b8ceab54ef1ae1744cc378225a36d02 (patch)
tree7a379efdd71c5350f2f06e34f5200029163ce64c /include/stc/cregex.h
parent65199590def8459198f9460c5d975a1df22d00a8 (diff)
downloadSTC-modified-f7fbc7727b8ceab54ef1ae1744cc378225a36d02.tar.gz
STC-modified-f7fbc7727b8ceab54ef1ae1744cc378225a36d02.zip
Minor formatting.
Diffstat (limited to 'include/stc/cregex.h')
-rw-r--r--include/stc/cregex.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/stc/cregex.h b/include/stc/cregex.h
index d19d518f..4812bff2 100644
--- a/include/stc/cregex.h
+++ b/include/stc/cregex.h
@@ -76,8 +76,9 @@ typedef struct {
csview ref[cre_MAXCAPTURES];
} cregex_iter;
-#define c_foreach_match(i, _re, _input) \
- for (cregex_iter i = {_re, _input}; cregex_find(i.input, i.re, i.ref, cre_m_next) == cre_success;)
+#define c_foreach_match(it, Re, Input) \
+ for (cregex_iter it = {Re, Input}; \
+ cregex_find(it.input, it.re, it.ref, cre_m_next) == cre_success;)
static inline
cregex cregex_init(void) {