aboutsummaryrefslogtreecommitdiff
path: root/match.h
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-05-29 13:12:34 -0400
committerBruce Hill <bruce@bruce-hill.com>2024-05-29 13:12:34 -0400
commitf2718636018468725234e677225c74b0810ff10c (patch)
treef313bfc44bedbed33c9f5f1d7938dc8ff53d1aae /match.h
parent1597b34a95e7825e97be52bb452419f4b5f1badb (diff)
Rename 'pat_t' -> 'bp_pat_t'
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 eba4e66..6082474 100644
--- a/match.h
+++ b/match.h
@@ -15,7 +15,7 @@
typedef struct match_s {
// Where the match starts and ends (end is after the last character)
const char *start, *end;
- pat_t *pat;
+ bp_pat_t *pat;
// Intrusive linked list node for garbage collection:
struct {
struct match_s **home, *next;
@@ -30,7 +30,7 @@ __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 *defs, pat_t *skip, bool ignorecase);
+bool next_match(match_t **m, const char *start, const char *end, bp_pat_t *pat, bp_pat_t *defs, bp_pat_t *skip, bool ignorecase);
#define stop_matching(m) next_match(m, NULL, NULL, NULL, NULL, NULL, 0)
bp_errhand_t bp_set_error_handler(bp_errhand_t handler);
__attribute__((nonnull))