From 5f0a7a876ad3add4319eddb57eb7e4aed5ba57bc Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Fri, 1 Oct 2021 14:31:22 -0700 Subject: Removing refcounting bookkeeping --- match.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'match.h') 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); -- cgit v1.2.3