aboutsummaryrefslogtreecommitdiff
path: root/match.h
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2021-10-01 14:31:22 -0700
committerBruce Hill <bruce@bruce-hill.com>2021-10-01 14:31:22 -0700
commit5f0a7a876ad3add4319eddb57eb7e4aed5ba57bc (patch)
tree5e0456c7b01c2096d1b4289603c583aa52a4bbcc /match.h
parent9812de0c58e6d21a7f04bd68893c2caef1bb3213 (diff)
Removing refcounting bookkeeping
Diffstat (limited to 'match.h')
-rw-r--r--match.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/match.h b/match.h
index 487b833..a31d923 100644
--- a/match.h
+++ b/match.h
@@ -24,7 +24,6 @@ typedef struct match_s {
pat_t *pat;
// Intrusive linked list nodes for garbage collection and cache buckets:
match_dll_t gc, cache;
- int refcount;
struct match_s **children;
struct match_s *_children[3];
} match_t;
@@ -36,7 +35,7 @@ typedef struct {
} print_options_t;
__attribute__((nonnull))
-void recycle_if_unused(match_t **at_m);
+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);