From a0b56360cc65f9add1ab169beeb063a3cbd1322f Mon Sep 17 00:00:00 2001 From: Tyge Løvset Date: Tue, 2 Aug 2022 09:32:22 +0200 Subject: Changed c_foreach_match (m, re, input) to take pointer: cregex* re. --- include/stc/cregex.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/stc/cregex.h') 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; -- cgit v1.2.3