summaryrefslogtreecommitdiffhomepage
path: root/include/stc/cregex.h
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2022-09-21 14:54:47 +0200
committerTyge Løvset <[email protected]>2022-09-21 14:54:47 +0200
commit307c0a111c8f063032ba90b2a7ae07122e2a2b1a (patch)
tree0c989b52d7fe4a87d11dc593df5b16579dd1bd22 /include/stc/cregex.h
parenta1d6c85b72027c9cd09d6bf0b1e0f7c3942e4aee (diff)
downloadSTC-modified-307c0a111c8f063032ba90b2a7ae07122e2a2b1a.tar.gz
STC-modified-307c0a111c8f063032ba90b2a7ae07122e2a2b1a.zip
Recent macro renames:
c_foreach_token() => c_fortoken() c_foreach_match() => c_formatch() Added: c_forfiltered() c_forpred()
Diffstat (limited to 'include/stc/cregex.h')
-rw-r--r--include/stc/cregex.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/stc/cregex.h b/include/stc/cregex.h
index 2222dc45..6c817f1c 100644
--- a/include/stc/cregex.h
+++ b/include/stc/cregex.h
@@ -77,7 +77,7 @@ typedef struct {
csview match[cre_MAXCAPTURES];
} cregex_iter;
-#define c_foreach_match(it, Re, Input) \
+#define c_formatch(it, Re, Input) \
for (cregex_iter it = {Re, Input}; \
cregex_find(it.re, it.input, it.match, cre_m_next) == cre_success;)