aboutsummaryrefslogtreecommitdiff
path: root/match.h
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2022-04-30 14:19:08 -0400
committerBruce Hill <bruce@bruce-hill.com>2022-04-30 14:19:08 -0400
commit24ed834317f3fda8f0f55489f54a2df1aca5de17 (patch)
tree823b9f7c7c1c28e1d0b42535955d211b1073bec2 /match.h
parente5c0d09893401b82855872d4f150a0acf56d76d4 (diff)
Simplified things by passing a def argument to next_match instead of
chaining defs together. Also simplified `..` by just using a lookahead instead of retconning it. Immutability invariants are now enforced better.
Diffstat (limited to 'match.h')
-rw-r--r--match.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/match.h b/match.h
index 7439b27..5209977 100644
--- a/match.h
+++ b/match.h
@@ -28,8 +28,8 @@ __attribute__((nonnull))
void recycle_match(match_t **at_m);
size_t free_all_matches(void);
size_t recycle_all_matches(void);
-bool next_match(match_t **m, const char *start, const char *end, pat_t *pat, pat_t *skip, bool ignorecase);
-#define stop_matching(m) next_match(m, NULL, NULL, NULL, NULL, 0)
+bool next_match(match_t **m, const char *start, const char *end, pat_t *pat, pat_t *defs, pat_t *skip, bool ignorecase);
+#define stop_matching(m) next_match(m, NULL, NULL, NULL, NULL, NULL, 0)
__attribute__((nonnull))
match_t *get_numbered_capture(match_t *m, int n);
__attribute__((nonnull, pure))