summaryrefslogtreecommitdiffhomepage
path: root/include/stc/cregex.h
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2022-08-02 09:32:22 +0200
committerTyge Løvset <[email protected]>2022-08-02 09:32:22 +0200
commita0b56360cc65f9add1ab169beeb063a3cbd1322f (patch)
treee0c73d0a9c19cd05eaa3f0c1d4f680b528c13b05 /include/stc/cregex.h
parent23ed40d55f3ff2b30f3b3fe01edfb51e418292b4 (diff)
downloadSTC-modified-a0b56360cc65f9add1ab169beeb063a3cbd1322f.tar.gz
STC-modified-a0b56360cc65f9add1ab169beeb063a3cbd1322f.zip
Changed c_foreach_match (m, re, input) to take pointer: cregex* re.
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 e828e944..fbf5b931 100644
--- a/include/stc/cregex.h
+++ b/include/stc/cregex.h
@@ -72,7 +72,7 @@ typedef struct {
#define c_foreach_match(m, re, input) \
for (csview m[cre_MAXCAPTURES] = {{0}}, _c_in = csview_from(input); \
- cregex_find(_c_in.str, &(re), m, cre_m_next) == cre_success; )
+ cregex_find(_c_in.str, re, m, cre_m_next) == cre_success; )
//typedef csview cregmatch;